AbbreviationAsWordInName: apply to final and static

This commit is contained in:
Paul Campbell 2016-09-04 22:37:34 +01:00
parent c1beb073da
commit ee9753c9bb
2 changed files with 5 additions and 4 deletions

View file

@ -294,9 +294,7 @@ Rules are listed in alphabetical order.
#### [AbbreviationAsWordInName](http://checkstyle.sourceforge.net/config_naming.html#AbbreviationAsWordInName) #### [AbbreviationAsWordInName](http://checkstyle.sourceforge.net/config_naming.html#AbbreviationAsWordInName)
Enforces proper `CamelCase` and avoids sequences of consecutive uppercase characters in identifiers. Does not apply to final or static variables, or @Overridden methods. Enforces proper `CamelCase` and avoids sequences of consecutive uppercase characters in identifiers. Does not apply to @Overridden methods.
> TODO: enable for final and static variables.
Valid: Valid:
```` ````

View file

@ -23,7 +23,10 @@
<module name="TreeWalker"> <module name="TreeWalker">
<module name="AbbreviationAsWordInName"/> <!-- enforce proper CamelCase --> <module name="AbbreviationAsWordInName"> <!-- enforce proper CamelCase -->
<property name="ignoreStatic" value="false"/>
<property name="ignoreFinal" value="false"/>
</module>
<module name="AbstractClassName"/> <!-- enforce Abstract.* in abstract class names --> <module name="AbstractClassName"/> <!-- enforce Abstract.* in abstract class names -->
<module name="AnnotationLocation"/> <!-- annotations should be on line by themselves --> <module name="AnnotationLocation"/> <!-- annotations should be on line by themselves -->
<module name="AnnotationUseStyle"/> <!-- annotations should only use () and named attributes when needed --> <module name="AnnotationUseStyle"/> <!-- annotations should only use () and named attributes when needed -->