c++sonarqubecppcheck

How to activate cppcheck rules with Sonar C/C++ plugin


I just installed an evaluation version of the C/C++ plugin SonarSource. The documentation says:

I couldn't find how to activate cppcheck rules. If I browse the quality profile, I can see 60 rules. If I try to filter rules from cppcheck repository, then none appear. So what should I do?

Additionnaly, I used to run cppcheck priori to analysis, and then use Sonar C++ Community plugin, which contains 219 cppcheck rules. My first guess was to inherits SonarSource profile from Community profile, but they don't share the profile type : C/C++ vs c++. So I couldn't achieve this (and consequently don't know if that is the solution I'm seeking).


Solution

  • This was a misunderstanding:

    The solution was to remove the filter on the Activation field, and then activate all rules as indicated in the documentation.