I am running SonnarScanner for a C++ Windows project which uses bazel for compilation and see below log in the sonar scanner output:
“0 compilation units analyzed”
Apart from this I do not notice any warnings, errors or complaints from the debug output.
But the problem is I get 0 Bug, 0 Vulnerabilities, 0 Code Smells and 0 Duplications in the final report that gets generated and uploaded to the SonarQube Server.
you are using a very old version of SonarQube which is not supported anymore, I would invite you to upgrade to a more recent version and test with a newer version.
When you say SonarQube version do you mean the SonarQube server version or SonarScanner version ?
Also we use the same SQ and SC set up for another project which has cfamily code(C++) and uses ‘msbuild’ for compilation. SonarQube works well with that. So wondering is there any change in the latest SonarQube wrt bazel ?
The SQ server we use is spread across various projects so above information will help me get the versions upgraded in our build servers. Thanks.