简体   繁体   English

如何在Sonar Qube中导入findbug / PMD

[英]How to Import findbug/PMD in Sonar Qube

How can I import configuration files for FindBug/PMD (XML format) in sonar Qube? 如何在声纳Qube中为FindBug / PMD(XML格式)导入配置文件? I know the way but where to find those XML files to import? 我知道方法,但是在哪里可以找到要导入的XML文件?

Here is the explanation of SonarQube and its integration 这是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. SonarQube Java插件本身已经涵盖了所有Checkstyle和PMD规则-这就是为什么相关插件不再捆绑在SonarQube中的原因。 So you can get rid of those plugins and forget the related rules. 因此,您可以摆脱那些插件而忘记相关规则。

Concerning Findbugs, most rules are complementary to the SonarQube Java plugin rules. 关于Findbug,大多数规则是SonarQube Java插件规则的补充。 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. 不再有“使用Findbugs的声纳方式”配置文件,因为这是所有语言插件仅具有“声纳方式”配置文件的约定。

For more information, you can refer to the original post at SonarQube - Combining Sonar way, FindBugs, PMD and Checkstyle without duplicates 有关更多信息,您可以参考SonarQube上的原始文章-结合Sonar方式,FindBugs,PMD和Checkstyle,而不重复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM