Home | History | Annotate | Download | only in dagger2
      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)[^ ]"/>
     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             <property name="processJavadoc" value="true"/>
     60         </module>
     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             <property name="max" value="200"/>
     69         </module>
     70         <!--module name="ParameterNumber"/-->
     71 
     72 
     73         <!-- Checks for whitespace                               -->
     74         <!-- See http://checkstyle.sf.net/config_whitespace.html -->
     75         <module name="GenericWhitespace"/>
     76         <module name="EmptyForIteratorPad"/>
     77         <module name="MethodParamPad"/>
     78         <module name="NoWhitespaceAfter"/>
     79         <module name="NoWhitespaceBefore"/>
     80         <module name="OperatorWrap"/>
     81         <module name="ParenPad"/>
     82         <module name="TypecastParenPad"/>
     83         <module name="WhitespaceAfter"/>
     84         <module name="WhitespaceAround">
     85           <property name="allowEmptyConstructors" value="true" />
     86           <property name="allowEmptyMethods" value="true" />
     87         </module>
     88 
     89 
     90         <!-- Modifier Checks                                    -->
     91         <!-- See http://checkstyle.sf.net/config_modifiers.html -->
     92         <!--module name="ModifierOrder"/-->
     93         <module name="RedundantModifier"/>
     94 
     95 
     96         <!-- Checks for blocks. You know, those {}'s         -->
     97         <!-- See http://checkstyle.sf.net/config_blocks.html -->
     98         <!--module name="AvoidNestedBlocks"/-->
     99         <!--module name="EmptyBlock"/-->
    100         <module name="LeftCurly"/>
    101         <!--module name="NeedBraces"/-->
    102         <module name="RightCurly"/>
    103 
    104 
    105         <!-- Checks for common coding problems               -->
    106         <!-- See http://checkstyle.sf.net/config_coding.html -->
    107         <!--module name="AvoidInlineConditionals"/-->
    108         <module name="CovariantEquals"/>
    109         <module name="EmptyStatement"/>
    110         <!--<module name="EqualsAvoidNull"/>-->
    111         <module name="EqualsHashCode"/>
    112         <!--module name="HiddenField"/-->
    113         <module name="IllegalInstantiation"/>
    114         <!--<module name="InnerAssignment"/>-->
    115         <!--module name="MagicNumber"/-->
    116         <module name="MissingSwitchDefault"/>
    117         <module name="RedundantThrows"/>
    118         <module name="SimplifyBooleanExpression"/>
    119         <module name="SimplifyBooleanReturn"/>
    120 
    121         <!-- Checks for class design                         -->
    122         <!-- See http://checkstyle.sf.net/config_design.html -->
    123         <!--module name="DesignForExtension"/-->
    124         <!--module name="FinalClass"/-->
    125         <!--module name="HideUtilityClassConstructor"/-->
    126         <!--module name="InterfaceIsType"/-->
    127         <!--module name="VisibilityModifier"/-->
    128 
    129 
    130         <!-- Miscellaneous other checks.                   -->
    131         <!-- See http://checkstyle.sf.net/config_misc.html -->
    132         <!--module name="ArrayTypeStyle"/-->
    133         <!--module name="FinalParameters"/-->
    134         <!--module name="TodoComment"/-->
    135         <module name="UpperEll"/>
    136     </module>
    137 </module>
    138