Number of Bugs Found Going Down when adding Multiple Solution files(MSBUILD)

  • SonarQube version 7.9.1
    *CFamily plugin 6.6

When building C++ projects with the sonarqube scanner my first run was on 2 solution files(846k LOC)
it would report a large amount found bugs( 1.6k).

I would start a new project and run a build(msbuild) and and one other solution file(total 3 solution files(867k LOC) the reported bugs would go down massively(161 bugs found)

how can this be, we are analyzing the same code plus 1 additional solution file.

sounds like a bug or am I doing something wrong?
to be clear I would only do once a Start in the beginning and and End in the end.

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

Hello @Ed_Die,

What is the command you are using to build the project with build-wrapper?
Are you using incremental build so the old code is not built again in the second run?