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="false"/> 8 <property name="ignoreStaticFinal" value="true"/> 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 Example5 { 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; // violation 'no more than '1' consecutive capital letters' 25 static final int MAX_ALLOWED = 4; // OK, ignored 26 } 27 // xdoc section -- end