The new Java rule FieldNamingConventions (java-codestyle)

Detects field names that don't comply to a given convention. It defaults to
standard Java convention of using camelCase, but can be configured with ease for
e.g. constants or static fields.
This commit is contained in:
Paul Campbell 2018-09-03 08:56:50 +01:00
parent f153d3eece
commit e2a131e908

View file

@ -98,6 +98,7 @@ http://pmd.sourceforge.net/ruleset/2.0.0 ">
<property name="ignoreEnumDeclarations" value="false"/> <property name="ignoreEnumDeclarations" value="false"/>
</properties> </properties>
</rule> </rule>
<rule ref="category/java/codestyle.xml/FieldNamingConventions" />
<rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop"/> <rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop"/>
<rule ref="category/java/codestyle.xml/ForLoopsMustUseBraces"/> <rule ref="category/java/codestyle.xml/ForLoopsMustUseBraces"/>
<rule ref="category/java/codestyle.xml/GenericsNaming"/> <rule ref="category/java/codestyle.xml/GenericsNaming"/>