For on-the-fly analysis with IDE, we are attempting to set and apply these custom rules using the sonar lint extension, however we were unable to see the rules.
On checking the logs, it is observed that sonar lint is not fetching information for cxx-plugin :
SonarLint doesn’t load third-party extensions like sonar-cxx as stated in the FAQ post:
Third-party analyzers are not executed in SonarLint
Some issues may be reported in SonarQube by a plugin leveraging a third-party analyzer (PMD, Checkstyle, ESLint, PyLint, …). SonarLint will only run rules from SonarSource analyzers including custom rules extending SonarSource analyzers . Third-party analyzers usually have their own IDE integration, so we have no plan to run them in SonarLint.
As far as I know, the official C/C++/Objective-C plugin bundled in SonarQube Enterprise Edition isn’t extensible, so it’s impossible to implement “custom rules extending SonarSource analyzers” for C++ that would be executed by SonarLint.
I have a hard requirement to evaluate custom rules in static analysis of our code base. Is there any way to have customer C++ rules evaluated in SonarLint / SonarQube? Or should I be seeking another solution?