我正在使用SonarQube 4.0和FxCop 10的C#插件3.1。我有一个上游构建提供给我的程序集。我在Gradle中使用声纳跑步器插件。
当声纳转轮到达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:9394Sources[path removed]CallbackWebService.cs" is not in SonarQube.
16:43:16.660 INFO - Skipping the FxCop issue at line 38 whose file "e:9394Sources[path removed]CallbackWebService.cs" is not in SonarQube.
16:43:16.660 INFO - Skipping the FxCop issue at line 45 whose file "e:9394Sources[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单机版,看起来我可以使用/applyutxsl来转换路径,但据我所知,SonarQube不允许我访问FxCop命令行来启用它。
那么,我的问题是:有办法解决这个问题吗?从这个工作区构建程序集是不现实的,尝试同步两个工作区路径也是不合理的。
目前还不可能。看起来这是不可能的,见SONARFCOP-8。
请随意评论这张票。