blob: 794af42b68a71e52bca5f35d720f2e6ffe392a2d [file] [log] [blame]
Neil Fullere78f1172015-01-20 09:39:41 +00001<?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
61
62 <!-- Checks for Size Violations. -->
63 <!-- See http://checkstyle.sf.net/config_sizes.html -->
64 <module name="LineLength">
65 <property name="max" value="100"/>
66 </module>
67 <module name="MethodLength"/>
68
69
70 <!-- Checks for whitespace -->
71 <!-- See http://checkstyle.sf.net/config_whitespace.html -->
72 <module name="GenericWhitespace"/>
73 <!--<module name="EmptyForIteratorPad"/>-->
74 <module name="MethodParamPad"/>
75 <!--<module name="NoWhitespaceAfter"/>-->
76 <!--<module name="NoWhitespaceBefore"/>-->
77 <module name="OperatorWrap"/>
78 <module name="ParenPad"/>
79 <module name="TypecastParenPad"/>
80 <module name="WhitespaceAfter"/>
81 <module name="WhitespaceAround"/>
82
83
84 <!-- Modifier Checks -->
85 <!-- See http://checkstyle.sf.net/config_modifiers.html -->
86 <module name="ModifierOrder"/>
87 <module name="RedundantModifier"/>
88
89
90 <!-- Checks for blocks. You know, those {}'s -->
91 <!-- See http://checkstyle.sf.net/config_blocks.html -->
92 <module name="AvoidNestedBlocks"/>
93 <!--module name="EmptyBlock"/-->
94 <module name="LeftCurly"/>
95 <!--<module name="NeedBraces"/>-->
96 <module name="RightCurly"/>
97
98
99 <!-- Checks for common coding problems -->
100 <!-- See http://checkstyle.sf.net/config_coding.html -->
101 <!--module name="AvoidInlineConditionals"/-->
102 <module name="CovariantEquals"/>
103 <module name="EmptyStatement"/>
104 <!--<module name="EqualsAvoidNull"/>-->
105 <module name="EqualsHashCode"/>
106 <!--module name="HiddenField"/-->
107 <module name="IllegalInstantiation"/>
108 <!--module name="InnerAssignment"/-->
109 <!--module name="MagicNumber"/-->
110 <!--module name="MissingSwitchDefault"/-->
111 <module name="RedundantThrows"/>
112 <module name="SimplifyBooleanExpression"/>
113 <module name="SimplifyBooleanReturn"/>
114
115 <!-- Checks for class design -->
116 <!-- See http://checkstyle.sf.net/config_design.html -->
117 <!--module name="DesignForExtension"/-->
118 <!--<module name="FinalClass"/>-->
119 <module name="HideUtilityClassConstructor"/>
120 <module name="InterfaceIsType"/>
121 <!--module name="VisibilityModifier"/-->
122
123
124 <!-- Miscellaneous other checks. -->
125 <!-- See http://checkstyle.sf.net/config_misc.html -->
126 <module name="ArrayTypeStyle"/>
127 <!--module name="FinalParameters"/-->
128 <!--module name="TodoComment"/-->
129 <module name="UpperEll"/>
130 </module>
131</module>