SonarQube-找不到文件警告

我正在使用sonarqube在我的gradle java项目中运行声纳代码分析。

声纳gradle属性设置:

    properties {
        property("sonar.projectKey",rootProject.name)
        property("sonar.projectName",rootProject.name)
        property("sonar.host.url","sonar_url")
        property("sonar.java.source","11")
        property("sonar.sources","src/main/java")
        property("sonar.tests","src/test/groovy")
        property("sonar.analysis.mode",project.properties["sonar.analysis.mode"] as String)
        property("sonar.report.export.path","report.json")

    }
}

并使用jacoco (0.8.3)进行代码覆盖。

现在运行 sonarqube 任务后,我会看到以下消息。

> Task :sonarqube
The use of the issues mode (sonar.analysis.mode=issues) is deprecated. This mode will be dropped in the future.
Project doesn't exist on the server. All issues will be marked as 'new'.
CodeNarc completed: (p1=0; p2=0; p3=0) 551ms
Metric 'test_success_density' is an internal metric computed by Sonarqube. Provided value is ignored.
File not found: com/sample/project/YYYYY.java
File not found: com/sample/project/XXXXXX.java
.
.
.
.
File not found: com/sample/project/ZZZZZZ.java

任务已执行,并且在分配的路径中成功生成了报告。

但是,如何清除这些未找到的文件警告?

谢谢。

hzhz020261 回答:SonarQube-找不到文件警告

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3059141.html

大家都在问