About the Writing rules category

Topics focused on the ins-and-outs of implementing custom rules.

This category targets people writing rules with/for one of SonarSource language plugin.
Consequently, please carefully read the following:

When reaching out, please always:

  • Try to look at other open-source rules which are implemented.
    • Probably a rule is already achieving something not so far to what you are trying to do, and could give you hint on how to proceed
  • Tell us what language you are targeting
  • Working on your rule, please provide:
    • A clear and concise description of what you try to achieve with it
    • An example of code which is making your rule not behave as expected
    • The code of your custom rule, or at least the part which is not working as expected
  • Use latest released version of Language Plugins
  • Target latest LTS version of SonarQube

Useful links: