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:
Paul Campbell 2018-09-03 08:57:37 +01:00
parent e2a131e908
commit 0609e158f7

View file

@ -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"/>