SonarQube: 5.2
Scanner For MSBuild: 1.0.2
Below line exists in FilesToAnalyze.txt deep inside .sonarqube folder
...Help\User\Duplicating,_Renaming,_Deleting_a_Blueprint.htm
And, MSBuild.SonarQube.Runner.exe end
throws below exception. Notice how file name is truncated just before first comma in file name.
Caused by: java.lang.IllegalStateException: The folder 'C:\<full\path>\Help\User\Duplicating' does not exist for '<sonar:key>:509A1B17-E264-4DF5-99FC-AF27D064FBC4' (base directory = <dir containing .sonarqube>)
I decided to exclude the folder containing Help\User\
by passing /d:sonar.exclusions="**\<parentDir>\Help\**"
. This has no effect.
- Is there an issue in Sonar Runner if file names contained comma?
- Why doesn't sonar.exclusions have any effect?
- Finally, log message states
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging
. How do I pass -X switch to Sonar Runner fromMSBuild.SonarQube.Runner.exe
. Is it in thebegin
command orend
command?