1 <?xml version="1.0"?>
\r
2 <!DOCTYPE module PUBLIC
\r
3 "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
\r
4 "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
\r
6 <module name = "Checker">
\r
8 <property name="charset" value="UTF-8"/>
\r
10 <property name="severity" value="error"/>
\r
12 <module name="FileTabCharacter">
\r
13 <property name="eachLine" value="true"/>
\r
16 <module name="TreeWalker">
\r
20 <module name="RedundantImport">
\r
21 <property name="severity" value="error"/>
\r
24 <module name="AvoidStarImport">
\r
25 <property name="severity" value="error"/>
\r
28 <!-- General Code Style -->
\r
30 <module name="LineLength">
\r
31 <property name="max" value="100"/>
\r
32 <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://|^* static"/>
\r
35 <module name="EmptyBlock">
\r
36 <property name="option" value="TEXT"/>
\r
37 <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
\r
40 <module name="EmptyCatchBlock">
\r
41 <property name="exceptionVariableName" value="expected"/>
\r
44 <module name="LeftCurly">
\r
45 <property name="maxLineLength" value="100"/>
\r
48 <module name="RightCurly">
\r
49 <property name="option" value="alone"/>
\r
50 <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
\r
53 <module name="RightCurly">
\r
54 <property name="option" value="same"/>
\r
57 <module name="NoFinalizer"/>
\r
59 <module name="ArrayTypeStyle"/>
\r
61 <module name="ModifierOrder"/>
\r
63 <module name="Indentation">
\r
64 <property name="basicOffset" value="4"/>
\r
65 <property name="braceAdjustment" value="0"/>
\r
66 <property name="caseIndent" value="4"/>
\r
67 <property name="throwsIndent" value="4"/>
\r
68 <property name="lineWrappingIndentation" value="8"/>
\r
69 <property name="arrayInitIndent" value="2"/>
\r
72 <!-- White Space -->
\r
74 <module name="GenericWhitespace">
\r
75 <message key="ws.followed"
\r
76 value="GenericWhitespace ''{0}'' is followed by whitespace."/>
\r
77 <message key="ws.preceded"
\r
78 value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
\r
79 <message key="ws.illegalFollow"
\r
80 value="GenericWhitespace ''{0}'' should followed by whitespace."/>
\r
81 <message key="ws.notPreceded"
\r
82 value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
\r
85 <module name="WhitespaceAround">
\r
86 <property name="allowEmptyConstructors" value="true"/>
\r
87 <property name="allowEmptyMethods" value="false"/>
\r
88 <property name="allowEmptyTypes" value="false"/>
\r
89 <property name="allowEmptyLoops" value="false"/>
\r
90 <message key="ws.notFollowed"
\r
91 value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
\r
92 <message key="ws.notPreceded"
\r
93 value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
\r
94 <property name="severity" value="error"/>
\r
97 <module name="WhitespaceAfter">
\r
98 <property name="tokens" value="COMMA, SEMI, TYPECAST"/>
\r
101 <module name="NoWhitespaceBefore">
\r
102 <property name="tokens" value="SEMI, DOT, POST_DEC, POST_INC"/>
\r
103 <property name="allowLineBreaks" value="true"/>
\r
106 <module name="NoWhitespaceAfter">
\r
107 <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
\r
108 <property name="allowLineBreaks" value="true"/>
\r
113 <module name="PackageName">
\r
114 <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
\r
115 <message key="name.invalidPattern"
\r
116 value="Package name ''{0}'' must match pattern ''{1}''."/>
\r
119 <module name="MethodName">
\r
120 <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
\r
121 <message key="name.invalidPattern"
\r
122 value="Method name ''{0}'' must match pattern ''{1}''."/>
\r
125 <module name="TypeName">
\r
126 <message key="name.invalidPattern"
\r
127 value="Type name ''{0}'' must match pattern ''{1}''."/>
\r
130 <module name="MemberName">
\r
131 <property name="applyToPublic" value="false" />
\r
132 <property name="applyToPackage" value="false" />
\r
133 <property name="applyToProtected" value="false" />
\r
134 <property name="format" value="^m[A-Z]+[a-z0-9][a-zA-Z0-9]*$"/>
\r
135 <message key="name.invalidPattern"
\r
136 value="Member name ''{0}'' must match pattern ''{1}''."/>
\r
139 <module name="ParameterName">
\r
140 <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
\r
141 <message key="name.invalidPattern"
\r
142 value="Parameter name ''{0}'' must match pattern ''{1}''."/>
\r
145 <module name="LocalVariableName">
\r
146 <property name="tokens" value="VARIABLE_DEF"/>
\r
147 <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
\r
148 <property name="allowOneCharVarInForLoop" value="true"/>
\r
149 <message key="name.invalidPattern"
\r
150 value="Local variable name ''{0}'' must match pattern ''{1}''."/>
\r
153 <module name="ClassTypeParameterName">
\r
154 <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
\r
155 <message key="name.invalidPattern"
\r
156 value="Class type name ''{0}'' must match pattern ''{1}''."/>
\r
159 <module name="MethodTypeParameterName">
\r
160 <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
\r
161 <message key="name.invalidPattern"
\r
162 value="Method type name ''{0}'' must match pattern ''{1}''."/>
\r