开发者

Which is the highest priority in PMD?

开发者 https://www.devze.com 2023-02-21 17:23 出处:网络
Maybe it\'s just me, but I can\'t find information which is the highest priority in PMD: 1 or 5? Because of http://pmd.sourceforge.net/runnin开发者_JS百科g.html and the mention of the command line pa

Maybe it's just me, but I can't find information which is the highest priority in PMD: 1 or 5?

Because of http://pmd.sourceforge.net/runnin开发者_JS百科g.html and the mention of the command line parameter -minimumpriority I think 5 is the highest and 1 is the lowest value. Am I right?


Actually 1 is highest priority and 5 is lowest priority.
You can check the exported rule set, where

<rule ref="rulesets/imports.xml/ImportFromSamePackage"/> <!-- Default -->
<rule ref="rulesets/imports.xml/TooManyStaticImports">
   <priority>5</priority> <!-- Change to priority [information] -->
</rule>

The all default rule set configuration is in pmd-x.x.x.jar\rulesets\*.xml

Here you can see the rules priority and how they should be used.

0

精彩评论

暂无评论...
验证码 换一张
取 消