1<?xml version="1.0"?>
2<!DOCTYPE module PUBLIC
3    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5
6<module name="Checker">
7  <module name="NewlineAtEndOfFile"/>
8  <module name="FileLength"/>
9  <module name="FileTabCharacter"/>
10
11  <!-- Trailing spaces -->
12  <module name="RegexpSingleline">
13    <property name="format" value="\s+$"/>
14    <property name="message" value="Line has trailing spaces."/>
15  </module>
16
17  <!-- Space after 'for' and 'if' -->
18  <module name="RegexpSingleline">
19    <property name="format" value="^\s*(for|if)\b[^ ]"/>
20    <property name="message" value="Space needed before opening parenthesis."/>
21  </module>
22
23  <!-- For each spacing -->
24  <module name="RegexpSingleline">
25    <property name="format" value="^\s*for \(.*?([^ ]:|:[^ ])"/>
26    <property name="message" value="Space needed around ':' character."/>
27  </module>
28
29  <module name="TreeWalker">
30    <property name="cacheFile" value="${checkstyle.cache.file}"/>
31
32    <!-- Checks for Javadoc comments.                     -->
33    <!-- See http://checkstyle.sf.net/config_javadoc.html -->
34    <!--module name="JavadocMethod"/-->
35    <!--module name="JavadocType"/-->
36    <!--module name="JavadocVariable"/-->
37    <module name="JavadocStyle"/>
38
39
40    <!-- Checks for Naming Conventions.                  -->
41    <!-- See http://checkstyle.sf.net/config_naming.html -->
42    <!--<module name="ConstantName"/>-->
43    <module name="LocalFinalVariableName"/>
44    <module name="LocalVariableName"/>
45    <module name="MemberName"/>
46    <module name="MethodName"/>
47    <module name="PackageName"/>
48    <module name="ParameterName"/>
49    <module name="StaticVariableName"/>
50    <module name="TypeName"/>
51
52
53    <!-- Checks for imports                              -->
54    <!-- See http://checkstyle.sf.net/config_import.html -->
55    <module name="AvoidStarImport"/>
56    <module name="IllegalImport"/>
57    <!-- defaults to sun.* packages -->
58    <module name="RedundantImport"/>
59    <module name="UnusedImports">
60      <property name="processJavadoc" value="true"/>
61    </module>
62
63
64    <!-- Checks for Size Violations.                    -->
65    <!-- See http://checkstyle.sf.net/config_sizes.html -->
66    <module name="LineLength">
67      <property name="max" value="100"/>
68    </module>
69    <module name="MethodLength">
70      <property name="max" value="200"/>
71    </module>
72
73
74    <!-- Checks for whitespace                               -->
75    <!-- See http://checkstyle.sf.net/config_whitespace.html -->
76    <module name="GenericWhitespace"/>
77    <!--<module name="EmptyForIteratorPad"/>-->
78    <module name="MethodParamPad"/>
79    <!--<module name="NoWhitespaceAfter"/>-->
80    <!--<module name="NoWhitespaceBefore"/>-->
81    <module name="OperatorWrap"/>
82    <module name="ParenPad"/>
83    <module name="TypecastParenPad"/>
84    <module name="WhitespaceAfter"/>
85    <module name="WhitespaceAround"/>
86
87
88    <!-- Modifier Checks                                    -->
89    <!-- See http://checkstyle.sf.net/config_modifiers.html -->
90    <module name="ModifierOrder"/>
91    <module name="RedundantModifier"/>
92
93
94    <!-- Checks for blocks. You know, those {}'s         -->
95    <!-- See http://checkstyle.sf.net/config_blocks.html -->
96    <module name="AvoidNestedBlocks"/>
97    <!--module name="EmptyBlock"/-->
98    <module name="LeftCurly"/>
99    <!--<module name="NeedBraces"/>-->
100    <module name="RightCurly"/>
101
102
103    <!-- Checks for common coding problems               -->
104    <!-- See http://checkstyle.sf.net/config_coding.html -->
105    <!--module name="AvoidInlineConditionals"/-->
106    <module name="CovariantEquals"/>
107    <module name="EmptyStatement"/>
108    <!--<module name="EqualsAvoidNull"/>-->
109    <module name="EqualsHashCode"/>
110    <!--module name="HiddenField"/-->
111    <module name="IllegalInstantiation"/>
112    <!--module name="InnerAssignment"/-->
113    <!--module name="MagicNumber"/-->
114    <!--module name="MissingSwitchDefault"/-->
115    <module name="RedundantThrows"/>
116    <module name="SimplifyBooleanExpression"/>
117    <module name="SimplifyBooleanReturn"/>
118
119    <!-- Checks for class design                         -->
120    <!-- See http://checkstyle.sf.net/config_design.html -->
121    <!--module name="DesignForExtension"/-->
122    <!--<module name="FinalClass"/>-->
123    <module name="HideUtilityClassConstructor"/>
124    <module name="InterfaceIsType"/>
125    <!--module name="VisibilityModifier"/-->
126
127
128    <!-- Miscellaneous other checks.                   -->
129    <!-- See http://checkstyle.sf.net/config_misc.html -->
130    <module name="ArrayTypeStyle"/>
131    <!--module name="FinalParameters"/-->
132    <!--module name="TodoComment"/-->
133    <module name="UpperEll"/>
134  </module>
135</module>
136