我使用SonarQube 4.0和C#插件3.1和FxCop 10.我通过上游构建向我提供了程序集。我在Gradle中使用了sonar-runner插件。
当声纳 - 跑步者到达FxCop分析时,我得到如下的日志输出:
16:43:16.660 INFO - Skipping the FxCop issue at line 9 which has no associated file.
16:43:16.660 INFO - Skipping the FxCop issue at line 12 which has no associated file.
16:43:16.660 INFO - Skipping the FxCop issue at line 15 which has no associated file.
16:43:16.660 INFO - Skipping the FxCop issue at line 24 which has no associated file.
16:43:16.660 INFO - Skipping the FxCop issue at line 31 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube.
16:43:16.660 INFO - Skipping the FxCop issue at line 38 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube.
16:43:16.660 INFO - Skipping the FxCop issue at line 45 whose file "e:\9394\Sources\[path removed]\CallbackWebService.cs" is not in SonarQube.
16:43:16.660 INFO - Sensor org.sonar.plugins.csharp.core.CSharpFxCopProvider$CSharpFxCopSensor@18db7c1 done: 3344 ms
这似乎是因为我的SonarQube分析的TFS工作区位于构建程序集的工作区的不同位置。如果我单独使用FxCop,看起来我能够使用/ applyoutxsl来转换路径,但SonarQube并没有让我访问FxCop命令行来尽可能地启用它告诉。
所以,我的问题是:有办法解决这个问题吗?从这个工作区构建程序集是不现实的,尝试同步两个工作区路径是不合理的。