4

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

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
Daniel W.
  • 938
  • 8
  • 21

1 Answers1

2

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

/d:sonar.verbose=true 

Reference: https://docs.sonarqube.org/display/SCAN/Additional+Analysis+Parameters

  • This is a valid answer, but for C# that argument should be passed to the SonarScanner.MSBuild.exe begin ... command and it will take effect for the end command too. – GeorgiG Jun 14 '22 at 12:00