【问题标题】:FxCop with SonarQube when assemblies are built from different directory从不同目录构建程序集时使用 SonarQube 的 FxCop
【发布时间】:2014-09-25 10:15:03
【问题描述】:

我将 SonarQube 4.0 和 C# 插件 3.1 与 FxCop 10 一起使用。我有上游构建提供给我的程序集。我在 Gradle 中使用 sonar-runner 插件。

当 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 命令行来启用它。

所以,我的问题是:有没有办法解决这个问题?从这个工作区构建程序集是不现实的,尝试同步两个工作区路径是不合理的。

【问题讨论】:

    标签: sonarqube fxcop fxcopcmd


    【解决方案1】:

    这暂时是不可能的。而且看起来不可能实现,请参阅SONARFXCOP-8

    请随意评论这张票。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 2017-01-20
      相关资源
      最近更新 更多