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"/> <!-- defaults to sun.* packages --> 57 <module name="RedundantImport"/> 58 <module name="UnusedImports"/> 59 60 61 <!-- Checks for Size Violations. --> 62 <!-- See http://checkstyle.sf.net/config_sizes.html --> 63 <module name="LineLength"> 64 <property name="max" value="100"/> 65 </module> 66 <module name="MethodLength"/> 67 <module name="ParameterNumber"/> 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="DoubleCheckedLocking"/> 104 <module name="EmptyStatement"/> 105 <!--<module name="EqualsAvoidNull"/>--> 106 <module name="EqualsHashCode"/> 107 <!--module name="HiddenField"/--> 108 <module name="IllegalInstantiation"/> 109 <!--module name="InnerAssignment"/--> 110 <!--module name="MagicNumber"/--> 111 <!--module name="MissingSwitchDefault"/--> 112 <module name="RedundantThrows"/> 113 <module name="SimplifyBooleanExpression"/> 114 <module name="SimplifyBooleanReturn"/> 115 116 <!-- Checks for class design --> 117 <!-- See http://checkstyle.sf.net/config_design.html --> 118 <!--module name="DesignForExtension"/--> 119 <!--<module name="FinalClass"/>--> 120 <module name="HideUtilityClassConstructor"/> 121 <module name="InterfaceIsType"/> 122 <!--module name="VisibilityModifier"/--> 123 124 125 <!-- Miscellaneous other checks. --> 126 <!-- See http://checkstyle.sf.net/config_misc.html --> 127 <module name="ArrayTypeStyle"/> 128 <!--module name="FinalParameters"/--> 129 <!--module name="TodoComment"/--> 130 <module name="UpperEll"/> 131 </module> 132</module> 133