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