2 <!DOCTYPE module PUBLIC
3 "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4 "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
7 Changes to this file need to be discussed on classpath@gnu.org
8 mailing list first and probably documented in the hacking guide.
11 <module name="Checker">
12 <module name="PackageHtml"/>
14 <module name="TreeWalker">
15 <property name="tabWidth" value="8"/>
17 <!-- Javadoc related checks -->
19 <module name="JavadocType">
20 <property name="scope" value="protected"/>
22 <module name="JavadocMethod">
23 <property name="scope" value="protected"/>
24 <property name="allowUndeclaredRTE" value="true"/>
26 <module name="JavadocVariable">
27 <property name="scope" value="protected"/>
30 <module name="JavadocStyle">
31 <property name="checkFirstSentence" value="false"/>
32 <property name="checkHtml" value="true"/>
35 <!-- File header checks -->
36 <module name="RegexpHeader">
37 <property name="headerFile" value="scripts/checkstyle-header.regex"/>
38 <property name="multiLines" value="2, 3, 38"/>
41 <!-- import checks -->
42 <module name="AvoidStarImport"/>
43 <module name="RedundantImport"/>
44 <module name="UnusedImports"/>
45 <module name="ImportOrder">
46 <property name="groups" value="gnu,java,javax,org"/>
47 <property name="ordered" value="true"/>
48 <property name="separated" value="true"/>
53 <module name="LineLength">
54 <property name="max" value="80"/>
58 <!-- modifier checks -->
59 <module name="ModifierOrder"/>
60 <module name="RedundantModifier"/>
64 <module name="EmptyBlock">
65 <property name="option" value="text"/>
67 <module name="LeftCurly">
68 <property name="option" value="nl"/>
70 <module name="RightCurly">
71 <property name="option" value="alone"/>
73 <module name="AvoidNestedBlocks"/>
76 <!-- coding problem checks -->
78 <module name="ArrayTrailingComma"/>
79 <module name="CovariantEquals"/>
80 <module name="DoubleCheckedLocking"/>
81 <module name="EmptyStatement"/>
82 <module name="EqualsHashCode"/>
83 <module name="HiddenField"/>
85 <module name="IllegalInstantiation">
86 <property name="classes" value="java.lang.Boolean"/>
89 <module name="InnerAssignment"/>
90 <module name="MagicNumber"/>
91 <module name="RedundantThrows"/>
92 <module name="SimplifyBooleanExpression"/>
93 <module name="SimplifyBooleanReturn"/>
94 <module name="NestedIfDepth"/>
95 <module name="NestedTryDepth"/>
96 <module name="SuperClone"/>
97 <module name="SuperFinalize"/>
98 <module name="IllegalCatch"/>
100 <module name="PackageDeclaration"/>
102 <module name="DeclarationOrder"/>
103 <module name="DefaultComesLast"/>
104 <module name="UnnecessaryParentheses"/>
107 <!-- design problem checks -->
109 <module name="FinalClass"/>
110 <module name="HideUtilityClassConstructor"/>
113 <!-- miscellaneous checks -->
115 <module name="TodoComment"/>
116 <module name="UpperEll"/>
117 <module name="ArrayTypeStyle"/>
118 <module name="Indentation">
119 <property name="basicOffset" value="2"/>
120 <property name="braceAdjustment" value="2"/>
121 <property name="caseIndent" value="0"/>
126 <module name="StrictDuplicateCode"/>
129 <module name="SuppressionFilter">
130 <property name="file" value="scripts/checkstyle-suppressions.xml"/>