【问题标题】:SonarQube: No analysis has been performed since creation. The only available section is the configurationSonarQube:自创建以来未进行任何分析。唯一可用的部分是配置
【发布时间】:2017-02-11 18:42:19
【问题描述】:

我是 SonarQube 新手。我正在通过 sonar-eclipse-plugin 在 eclipse 中运行分析。但在远程服务器上,它显示:

自创建以来未执行任何分析。唯一可用的 部分是配置

如何在服务器上查看分析结果?

【问题讨论】:

    标签: sonarqube


    【解决方案1】:

    这意味着您有provisioned your project 能够在 Eclipse 中进行本地分析。

    • 本地分析(如 Eclipse 中发生的情况)不会将数据推送到服务器 - 它们用于“预览”代码的质量

    • 定期分析会将结果推送到服务器。您使用 Maven、SonarQube Runner、Ant、Gradle、Jenkins 等运行此类分析...

    因此,如果您想在 SonarQube Web 应用程序中查看结果,只需进行常规分析即可。一切都在"Analyzing Source Code" documentation section中解释。

    【讨论】:

    • eclipse有没有办法将结果推送到服务器?
    • 不,这是禁止的。
    【解决方案2】:

    我的场景:我已经在不同的项目键中分析了这个项目的一个子模块。错误是sonar module already part of project

    如何检测:我使用maven声纳客户端,Reactor Summary之前有一个INFO日志

    [INFO] Analysis report uploaded in 35ms
    [INFO] ANALYSIS SUCCESSFUL, you can browse http://localhost:32770/dashboard/index/test.test.test
    [INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
    [INFO] More about the report processing at http://localhost:32770/api/ce/task?id=AVoshDlt_7pTduMM9HHB
    [INFO] Task total time: 13.621 s
    

    More about the report processing链接,你会找到原因的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-10-19
      • 2015-07-07
      • 1970-01-01
      • 2019-10-25
      • 1970-01-01
      • 1970-01-01
      • 2016-02-16
      • 2017-01-07
      相关资源
      最近更新 更多