What's the right way to write custom checks for SonarQube 4.5 -


What is currently the best way to write Sonakubbec 4.5 check:

  1. Bytecode analysis < Unfortunately, an up-to-date web page providing a clear explanation to me could not be found, and I think many dislike the current check Use sections and methods, use "bridge" to leave, checks are routinely removed from the codebase. Requirement (such as XPath rules).

    I would like to make sure that the checks I want to write will be well written and durable.

    Then ...

  2. Should I use BaseTreeVisitor to analyze the source code?
  3. What is the replacement for org.sonar.api.rules.RuleRepository ?
  4. What is the replacement for org.sonar.api.resources.Java ?
  5. what is the replacement for org.sonar.api.rules.AnnotationRuleParser ?
  6. How can I write XPath like the rules ( BaseTreeVisitor is using SSLR and if I am not wrong then SonarCube is getting away from SSLR / Saraxpath Check is part of the SSL Squid bridge.)
  7. What else should I know?
  8. Thank you in advance for your help.

Thank you first for your response, you really have many questions (SIC):

Using the BaseTreeVisitor to write the custom check for Java as of today, all other methods have now been deprecated and we are working to be able to delete them. (But this is not always straightforward because some of them have to be removed from full meaning analysis). What is currently lacking in this API, is to be able to access semantic analysis, to be able to request type information from the betacode. You can see this project:

For all other questions, please ask them on the mailing list.

(Little note though: BaseTreeVisitor does not use SSLR directly, Java plugin is not going away from SSLR, but rather from a class, especially ASTNode , each type To work on a syntax with a specific category for the node, the drop of Xpath check is in the logic going away from a non-type syntax.)


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -