SonarQube - Custom Rules for C++ programs

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube = sonarqube-developer-8.4.1.35646
    Scanner = sonar-scanner-4.4.0.2170-windows
  • what are you trying to achieve
    I want to explore the ability to define custom rules for C++
  • what have you tried so far to achieve this
    I’ve tried to google after seeing no option

Is it true that due the limit of a Developer Edition license, I could not see the ability to add or define a custom rule?

Thanks,

Brian Nguyen

Hello @brianvkn,

Or C++ analysis does not currently offer the possibility to add custom rules (and it’s totally unrelated to the fact that it requires a developer edition of more).

Maybe you can share with us the kind of rule that you would like to add, which would have two positive effects:

  • If we think they are generic enough, maybe we could develop them ourselves
  • If we think they are not, seeing what kind of user-defined rules could be useful might help us decide to add a custom rules feature to our analyzer.

Hope this helps,