checkstyle.xml 5.52 KB
Newer Older
Luc Maisonobe's avatar
Luc Maisonobe committed
1 2 3 4 5
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
                        "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

<module name="Checker">
6
    <module name="TreeWalker">
7
        <module name="AvoidStarImport"/>
8
        <module name="AvoidStaticImport"/>
9 10 11 12 13 14
        <module name="ConstantName"/>
        <module name="DeclarationOrder"/>
        <module name="EqualsHashCode"/>
        <module name="FallThrough"/>
        <module name="FinalLocalVariable"/>
        <module name="FinalParameters"/>
15 16 17 18
        <module name="Regexp">
            <property name="format" value="[ \t]+$"/>
            <property name="illegalPattern" value="true"/>
            <property name="message" value="Trailing whitespace"/>
19
        </module>
20
        <module name="Regexp">
21
            <property name="format" value="System\.out\.println"/>
22 23
            <property name="illegalPattern" value="true"/>
            <property name="ignoreComments" value="true"/>
24
        </module>
25 26 27 28 29 30 31
        <module name="HiddenField">
            <property name="ignoreConstructorParameter" value="true"/>
            <property name="ignoreSetter" value="true"/>
        </module>
        <module name="HideUtilityClassConstructor"/>
        <module name="IllegalCatch"/>
        <module name="IllegalImport"/>
32
        <module name="Indentation">
33
            <property name="basicOffset" value="4"/>
34
            <property name="caseIndent"  value="4"/>
35 36
        </module>
        <module name="JavadocMethod">
37 38
            <property name="allowUndeclaredRTE" value="true"/>
            <property name="allowMissingPropertyJavadoc" value="true"/>
39
            <property name="validateThrows" value="false"/>
40
        </module>
41
        <module name="JavadocStyle"/>
42
        <module name="JavadocVariable"/>
43 44
        <module name="MissingSwitchDefault"/>
        <module name="ModifierOrder"/>
45
        <module name="MultipleStringLiterals">
46
            <property name="ignoreStringsRegexp" value='^(("")|(".")|("\\\\"))$'/>
47
        </module>
48 49 50
        <module name="MultipleVariableDeclarations"/>
        <module name="NoWhitespaceAfter"/>
        <module name="NoWhitespaceBefore"/>
51
        <module name="OperatorWrap">
52 53 54 55
            <property name="option" value="eol"/>
        </module>
        <module name="RedundantModifier"/>
        <module name="StringLiteralEquality"/>
56 57 58
        <module name="TodoComment">
            <property name="severity" value="warning"/>
        </module>
59 60 61
        <module name="UnnecessaryParentheses"/>
        <module name="UnusedImports"/>
        <module name="VisibilityModifier"/>
62
        <module name="WhitespaceAfter"/>
63 64 65 66 67 68 69 70 71 72
        <module name="WhitespaceAround">
            <property name="tokens"
                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
                             BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT,
                             LAND, LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
                             LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
                             LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT,
                             MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS,
                             PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
                             SR_ASSIGN, STAR, STAR_ASSIGN"/>
73
        </module>
Luc Maisonobe's avatar
Luc Maisonobe committed
74 75 76 77 78 79
        <module name="SuppressionCommentFilter">
           <property name="offCommentFormat" value="CHECKSTYLE\: stop JavadocVariable check"/>
            <property name="onCommentFormat"  value="CHECKSTYLE\: resume JavadocVariable check"/>
            <property name="checkFormat"      value="JavadocVariable"/>
        </module>
        <module name="SuppressionCommentFilter">
80 81
            <property name="offCommentFormat" value="CHECKSTYLE\: stop VisibilityModifier check"/>
            <property name="onCommentFormat"  value="CHECKSTYLE\: resume VisibilityModifier check"/>
Luc Maisonobe's avatar
Luc Maisonobe committed
82 83 84
            <property name="checkFormat"      value="VisibilityModifierCheck"/>
        </module>
        <module name="SuppressionCommentFilter">
85 86
            <property name="offCommentFormat" value="CHECKSTYLE\: stop NoWhitespaceAfter check"/>
            <property name="onCommentFormat"  value="CHECKSTYLE\: resume NoWhitespaceAfter check"/>
Luc Maisonobe's avatar
Luc Maisonobe committed
87 88
            <property name="checkFormat"      value="NoWhitespaceAfter"/>
        </module>
Luc Maisonobe's avatar
Luc Maisonobe committed
89 90 91 92 93
        <module name="SuppressionCommentFilter">
          <property name="offCommentFormat" value="CHECKSTYLE\: stop Indentation check"/>
          <property name="onCommentFormat" value="CHECKSTYLE\: resume Indentation check"/>
          <property name="checkFormat" value="IndentationCheck"/>
        </module>
94 95 96 97 98
        <module name="SuppressionCommentFilter">
          <property name="offCommentFormat" value="CHECKSTYLE\: stop MultipleStringLiterals check"/>
          <property name="onCommentFormat" value="CHECKSTYLE\: resume MultipleStringLiterals check"/>
          <property name="checkFormat" value="MultipleStringLiteralsCheck"/>
        </module>
99 100 101 102 103
        <module name="SuppressionCommentFilter">
          <property name="offCommentFormat" value="CHECKSTYLE\: stop IllegalCatch check"/>
          <property name="onCommentFormat" value="CHECKSTYLE\: resume IllegalCatch check"/>
          <property name="checkFormat" value="IllegalCatchCheck"/>
        </module>
Luc Maisonobe's avatar
Luc Maisonobe committed
104
    </module>
105
    <module name="RegexpHeader">
106
      <property name="headerFile" value="${checkstyle.header.file}" />
107 108
    </module>
    <module name="FileTabCharacter"/>
109
    <module name="NewlineAtEndOfFile"/>
Luc Maisonobe's avatar
Luc Maisonobe committed
110
</module>