• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <module name="TreeWalker">
18        <property name="cacheFile" value="${checkstyle.cache.file}"/>
19
20        <!-- Checks for Javadoc comments.                     -->
21        <!-- See http://checkstyle.sf.net/config_javadoc.html -->
22        <!--module name="JavadocMethod"/-->
23        <!--module name="JavadocType"/-->
24        <!--module name="JavadocVariable"/-->
25        <module name="JavadocStyle"/>
26
27
28        <!-- Checks for Naming Conventions.                  -->
29        <!-- See http://checkstyle.sf.net/config_naming.html -->
30        <module name="ConstantName"/>
31        <module name="LocalFinalVariableName"/>
32        <module name="LocalVariableName"/>
33        <module name="MemberName"/>
34        <module name="MethodName"/>
35        <module name="PackageName"/>
36        <module name="ParameterName"/>
37        <module name="StaticVariableName"/>
38        <module name="TypeName"/>
39
40
41        <!-- Checks for imports                              -->
42        <!-- See http://checkstyle.sf.net/config_import.html -->
43        <module name="AvoidStarImport"/>
44        <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
45        <module name="RedundantImport"/>
46        <module name="UnusedImports"/>
47
48
49        <!-- Checks for Size Violations.                    -->
50        <!-- See http://checkstyle.sf.net/config_sizes.html -->
51        <module name="LineLength">
52            <property name="max" value="120"/>
53        </module>
54        <module name="MethodLength"/>
55        <module name="ParameterNumber"/>
56
57
58        <!-- Checks for whitespace                               -->
59        <!-- See http://checkstyle.sf.net/config_whitespace.html -->
60        <module name="GenericWhitespace"/>
61        <module name="EmptyForIteratorPad"/>
62        <module name="MethodParamPad"/>
63        <module name="NoWhitespaceAfter"/>
64        <module name="NoWhitespaceBefore"/>
65        <module name="OperatorWrap"/>
66        <module name="ParenPad"/>
67        <module name="TypecastParenPad"/>
68        <module name="WhitespaceAfter"/>
69        <module name="WhitespaceAround"/>
70
71
72        <!-- Modifier Checks                                    -->
73        <!-- See http://checkstyle.sf.net/config_modifiers.html -->
74        <!--module name="ModifierOrder"/-->
75        <module name="RedundantModifier"/>
76
77
78        <!-- Checks for blocks. You know, those {}'s         -->
79        <!-- See http://checkstyle.sf.net/config_blocks.html -->
80        <module name="AvoidNestedBlocks"/>
81        <!--module name="EmptyBlock"/-->
82        <module name="LeftCurly"/>
83        <module name="NeedBraces"/>
84        <module name="RightCurly"/>
85
86
87        <!-- Checks for common coding problems               -->
88        <!-- See http://checkstyle.sf.net/config_coding.html -->
89        <!--module name="AvoidInlineConditionals"/-->
90        <module name="CovariantEquals"/>
91        <module name="DoubleCheckedLocking"/>
92        <module name="EmptyStatement"/>
93        <!--<module name="EqualsAvoidNull"/>-->
94        <module name="EqualsHashCode"/>
95        <!--module name="HiddenField"/-->
96        <module name="IllegalInstantiation"/>
97        <!--module name="InnerAssignment"/-->
98        <!--module name="MagicNumber"/-->
99        <!--module name="MissingSwitchDefault"/-->
100        <module name="RedundantThrows"/>
101        <module name="SimplifyBooleanExpression"/>
102        <module name="SimplifyBooleanReturn"/>
103
104        <!-- Checks for class design                         -->
105        <!-- See http://checkstyle.sf.net/config_design.html -->
106        <!--module name="DesignForExtension"/-->
107        <module name="FinalClass"/>
108        <module name="HideUtilityClassConstructor"/>
109        <module name="InterfaceIsType"/>
110        <!--s/module name="VisibilityModifier"/-->
111
112
113        <!-- Miscellaneous other checks.                   -->
114        <!-- See http://checkstyle.sf.net/config_misc.html -->
115        <module name="ArrayTypeStyle"/>
116        <!--module name="FinalParameters"/-->
117        <!--module name="TodoComment"/-->
118        <module name="UpperEll"/>
119    </module>
120</module>
121