SonarQube - 结合声纳方式,FindBugs,PMD 和 Checkstyle 没有重复 [英] SonarQube - Combining Sonar way, FindBugs, PMD and Checkstyle without duplicates

查看:41
本文介绍了SonarQube - 结合声纳方式,FindBugs,PMD 和 Checkstyle 没有重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找将 SonarQube 与 FindBugs、PMD 和 Checkstyle 插件结合使用的最佳实践.

I'm looking for best practices using SonarQube with the FindBugs, PMD and Checkstyle plugins.

  1. SonarQube 的默认质量配置文件Sonar way"中的规则如何与那些插件有关?它们是完全不同的规则,还是 Sonar 方式包含这些插件中最重要的规则?
  2. 组合这些规则集的最佳方式是什么?如何避免重复检查?
  3. Sonar v.3.x 包含Sonar way with Findbugs"配置文件.我在 v.4.5.1 中找不到它 - 它发生了什么?

推荐答案

SonarQube Java 插件本身就已经涵盖了所有的 Checkstyle 和 PMD 规则——这就是为什么相关插件不再捆绑在 SonarQube 中的原因.这样你就可以摆脱那些插件,忘记相关的规则.

The SonarQube Java plugin alone already covers all the Checkstyle and PMD rules - which is why the related plugins are no more bundled in SonarQube. So you can get rid of those plugins and forget the related rules.

关于 Findbugs,大多数规则都是对 SonarQube Java 插件规则的补充.不再有Sonar way with Findbugs"配置文件,因为这是所有语言插件都只有一个Sonar way"配置文件的约定.

Concerning Findbugs, most rules are complementary to the SonarQube Java plugin rules. There's no "Sonar way with Findbugs" profile anymore because that's the convention for all the language plugin to have only a "Sonar way" profile.

这篇关于SonarQube - 结合声纳方式,FindBugs,PMD 和 Checkstyle 没有重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆