我试图弄清楚maven pmd插件(我有3.4版本)默认使用哪些规则集 .
根据plugin website,它只使用basic.xml,unusedcode.xml和imports.xml . 但是,我可以肯定地说它还必须使用unwanted.xml和empty.xml(因为我们在这些类别的代码中有失败但没有更改规则) .
我如何确定默认情况下它实际使用的其他规则集?
我想使用默认的规则集,但我需要进行一些小的调整,例如到UselessParentheses规则as described here .
其他有用的链接:
-
所有java规则集@ github
-
一个xml file that includes all java rules(以某种方式找不到在github上找到它)
1 回答
根据documentation of rulesets tag你是对的: