View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="AbbreviationAsWordInName">
5         <property name="allowedAbbreviationLength" value="0"/>
6         <property name="ignoreFinal" value="false"/>
7         <property name="ignoreStatic" value="true"/>
8         <property name="ignoreStaticFinal" value="false"/>
9         <property name="tokens" value="VARIABLE_DEF"/>
10      </module>
11    </module>
12  </module>
13  
14  
15  */
16  
17  package com.puppycrawl.tools.checkstyle.checks.naming.abbreviationaswordinname;
18  
19  // xdoc section -- start
20  class Example6 {
21    int counterXYZ = 1; // violation 'no more than '1' consecutive capital letters'
22    // violation below 'no more than '1' consecutive capital letters'
23    final int customerID = 2;
24    static int nextID = 3; // OK, ignored
25    // violation below 'no more than '1' consecutive capital letters'
26    static final int MAX_ALLOWED = 4;
27  }
28  // xdoc section -- end