The new Java rule LinguisticNaming (java-codestyle)
Detects cases, when a method name indicates it returns a boolean (such as isSmall()) but it doesn't. Besides method names, the rule also checks field and variable names. It also checks, that getters return something but setters won't. The rule has several properties with which it can be customized.
This commit is contained in:
parent
e2a131e908
commit
0609e158f7
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ http://pmd.sourceforge.net/ruleset/2.0.0 ">
|
|||
<rule ref="category/java/codestyle.xml/GenericsNaming"/>
|
||||
<rule ref="category/java/codestyle.xml/IfElseStmtsMustUseBraces"/>
|
||||
<rule ref="category/java/codestyle.xml/IfStmtsMustUseBraces"/>
|
||||
<rule ref="category/java/codestyle.xml/LinguisticNaming" />
|
||||
<rule ref="category/java/codestyle.xml/LocalVariableCouldBeFinal"/>
|
||||
<rule ref="category/java/codestyle.xml/LongVariable"/>
|
||||
<rule ref="category/java/codestyle.xml/MethodArgumentCouldBeFinal"/>
|
||||
|
|
Loading…
Reference in a new issue