Does SonarQube Enterprise Edition support custom C language code rule plugins?

I want to customize a plugin for checking C language code. Does SonarQube Enterprise Edition currently support this?

Hey there.

SonarQube’s built-in C/C++/Objective-C analysis doesn’t expose any APIs to develop custom rules (see the docs).

That leaves you with a few options:

  • Have a rule idea that could benefit the whole Sonar community? Suggest it here, maybe we’ll implement it ourselves!
  • Generate an issue report (using whatever tool you like) in the generic issue report format. This issue report can then be uploaded during analysis.
  • Develop a plugin (handling all the parsing, rule logic etc. yourself) but do not declare a new language