为啥我在 SonarQube 上看不到 Findbugs 的错误?

Posted

技术标签:

【中文标题】为啥我在 SonarQube 上看不到 Findbugs 的错误?【英文标题】: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 之类的命令运行? 【参考方案1】:

enter image description hereenter image description here

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

【讨论】:

以上是关于为啥我在 SonarQube 上看不到 Findbugs 的错误?的主要内容,如果未能解决你的问题,请参考以下文章

未针对 sonarqube 分析项目代码

为啥我看不到权限警报?我在 .plist 上配置它们

在以下任何来源中都找不到插件 [id: 'org.sonarqube', version: '2.8']:

为啥我在操作菜单上找不到“调试托管内存”?

为啥我在操作菜单上找不到“调试托管内存”?

由于找不到分析配置文件,SonarQube 分析无法完成