AbbreviationAsWordInName: apply to final and static
This commit is contained in:
parent
c1beb073da
commit
ee9753c9bb
2 changed files with 5 additions and 4 deletions
|
@ -294,9 +294,7 @@ Rules are listed in alphabetical order.
|
|||
|
||||
#### [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.
|
||||
|
||||
> TODO: enable for final and static variables.
|
||||
Enforces proper `CamelCase` and avoids sequences of consecutive uppercase characters in identifiers. Does not apply to @Overridden methods.
|
||||
|
||||
Valid:
|
||||
````
|
||||
|
|
|
@ -23,7 +23,10 @@
|
|||
|
||||
<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="AnnotationLocation"/> <!-- annotations should be on line by themselves -->
|
||||
<module name="AnnotationUseStyle"/> <!-- annotations should only use () and named attributes when needed -->
|
||||
|
|
Loading…
Reference in a new issue