c++sonarqubesonarqube-scansonarqube-msbuild-runner

Is there a verbose mode of SonarQube.Scanner.MSBuild.exe?


I have some problems while scanning a mixed C#, C++ solution with SonarQube.Scanner.MSBuild.exe. (during the SonarQube.Scanner.MSBuild.exe end) So I want to ask if there is a verbose option to activate enhanced/debug output.

The output is that a file is not found, but there is a additional subfolder in the path that is not correct, and I want to understand where it comes from.

Example: a.cpp is located on C:\src\ProjektA\Modul1, but the output says:

"Warn: Cannot find the file "C:\src\ProjektA\**Modul2**\Module1\a.cpp" skipping violations"

By the way: in FilesToAnalyse.txt the path is correct


Solution

  • To activate verbose mode, you simply need to pass the following argument:

    /d:sonar.verbose=true 
    

    Reference: https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/analysis-parameters/#analysis-logging