SonarQube Runner在其名称中包含逗号的文件上失败

时间:2016-05-21 04:03:45

标签: sonarqube-msbuild-runner sonarqube5.2

SonarQube:5.2

MSBuild扫描程序:1.0.2

下面的行存在于.Toparqube文件夹

内的FilesToAnalyze.txt中

...Help\User\Duplicating,_Renaming,_Deleting_a_Blueprint.htm

而且,MSBuild.SonarQube.Runner.exe end会抛出异常。请注意文件名在文件名中的第一个逗号之前是如何截断的。

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>)

我决定通过传递Help\User\来排除包含/d:sonar.exclusions="**\<parentDir>\Help\**"的文件夹。这没有效果。

  1. 如果文件名包含逗号,那么Sonar Runner是否存在问题?
  2. 为什么sonar.exclusions没有任何影响?
  3. 最后,记录消息状态ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging。如何从MSBuild.SonarQube.Runner.exe将-X切换到Sonar Runner。是在begin命令还是end命令?

1 个答案:

答案 0 :(得分:0)

这确实是一个已知问题。 有关何时修复的详细信息,请参阅source