【问题标题】:Groovy test files being reported as source filesGroovy 测试文件被报告为源文件
【发布时间】:2016-11-14 01:54:22
【问题描述】:

我正在使用 SonarQube Gradle 插件通过 build.gradle 中的配置将指标发送到 Sonar:

sonarqube {
  properties {
    property 'sonar.host.url', 'http://localhost:9000'
  }
}

当我在服务器上启用 Groovy 插件时,Groovy 测试类在服务器上被列为源文件。该项目有 Java 和 Groovy 文件。当 Groovy 插件被禁用时,没有测试类被报告为源文件。当我重新启用 Groovy 插件时,所有 Groovy 源文件和 Groovy 测试文件都会在 Sonar 中报告为源文件。

使用的服务器插件:

Java 时髦的

知道是什么原因造成的吗?

【问题讨论】:

    标签: sonarqube sonarqube-scan


    【解决方案1】:

    SonarQube Scanner for Gradle 本身是一个 Java + Groovy 项目,它运行良好。您能否创建一个小型复制器并在 SonarQube 用户组上分享?当我们有更多信息时,我们可以更新这个答案。

    【讨论】:

      猜你喜欢
      • 2019-12-19
      • 1970-01-01
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-08
      相关资源
      最近更新 更多