【问题标题】:Why I can not see bugs from Findbugs on SonarQube?为什么我在 SonarQube 上看不到 Findbugs 的错误?
【发布时间】:2020-12-30 00:59:28
【问题描述】:

我在 Sonarqube 中安装了 Findbugs-Plug-in 并激活它(设置为默认值)。我在 Eclipse 中有我的 Maven 项目。如果我运行这个项目,我会变成 47 个错误,并且可以在错误资源管理器中查看所有错误。在运行配置中,我的目标是 findbugs:findbugs sonar:sonar;作为参数名称/值:Dsonar.projectKey/ wawi-db-layer, Dsonar.host.url/ http://localhost:9000, Dsonar.login/ 令牌号, Dsonar.java.findbugs.reportPaths/ /target/findbugsXml。 xml。运行配置后是我的构建成功。但是我在 SonarQube 中看不到这 47 个错误。如果我使用声纳方式,我可以看到 13 个错误。为什么这另外 47 个来自 Findbugs 的错误没有显示在 SonarQube 中? 感谢您的帮助。

【问题讨论】:

  • 我怀疑参数名称应该都以“D”开头。这是命令行的遗留问题,您必须使用 -Dsonar.login=nnnnn 之类的命令运行?

标签: eclipse maven sonarqube findbugs


【解决方案1】:

enter image description hereenter image description here

我在运行配置下的 Eclipse 中创建它。使用“D”效果很好。我在 SonarQube 上有结果。但是这些转售不是来自 FindBugs,而是来自 SonarWay

【讨论】:

    猜你喜欢
    • 2020-04-22
    • 1970-01-01
    • 2019-08-13
    • 1970-01-01
    • 2014-12-13
    • 1970-01-01
    • 1970-01-01
    • 2017-06-20
    • 1970-01-01
    相关资源
    最近更新 更多