forked from ChrisMayfield/ThinkJavaCode2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckstyle.xml
142 lines (124 loc) · 5.25 KB
/
Checkstyle.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration for Think Java, 2nd Edition.
-->
<module name="Checker">
<!-- See http://checkstyle.sf.net/config.html#TreeWalker -->
<module name="TreeWalker">
<!-- See http://checkstyle.sf.net/config_annotation.html -->
<module name="AnnotationLocation"/>
<module name="AnnotationUseStyle"/>
<!-- See http://checkstyle.sf.net/config_blocks.html -->
<module name="AvoidNestedBlocks"/>
<module name="EmptyBlock"/>
<module name="LeftCurly"/>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<!-- See http://checkstyle.sf.net/config_design.html -->
<module name="VisibilityModifier">
<property name="protectedAllowed" value="true"/>
</module>
<!-- See http://checkstyle.sf.net/config_coding.html -->
<module name="AvoidInlineConditionals"/>
<module name="DeclarationOrder"/>
<module name="EmptyStatement"/>
<module name="FallThrough"/>
<module name="InnerAssignment"/>
<module name="ModifiedControlVariable"/>
<module name="MultipleVariableDeclarations"/>
<module name="OneStatementPerLine"/>
<module name="ParameterAssignment"/>
<module name="RequireThis">
<!--
<property name="checkMethods" value="false"/>
<property name="validateOnlyOverlapping" value="false"/>
-->
</module>
<module name="ReturnCount"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="UnnecessaryParentheses"/>
<!-- See http://checkstyle.sf.net/config_imports.html -->
<module name="AvoidStarImport">
<property name="excludes" value="org.junit.Assert"/>
</module>
<module name="AvoidStaticImport">
<property name="excludes" value="org.junit.Assert.*"/>
</module>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
<module name="AtclauseOrder"/>
<module name="JavadocMethod"/>
<module name="JavadocStyle"/>
<module name="JavadocType">
<!--
<property name="authorFormat" value="\S"/>
<property name="versionFormat" value="\S"/>
-->
</module>
<module name="NonEmptyAtclauseDescription"/>
<!-- See http://checkstyle.sf.net/config_misc.html -->
<module name="ArrayTypeStyle"/>
<module name="CommentsIndentation"/>
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="4"/>
<property name="arrayInitIndent" value="8"/>
</module>
<property name="tabWidth" value="4"/>
<module name="UpperEll"/>
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
<module name="ModifierOrder"/>
<module name="RedundantModifier"/>
<!-- See http://checkstyle.sf.net/config_naming.html -->
<module name="ConstantName"/>
<module name="LocalFinalVariableName">
<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
</module>
<module name="LocalVariableName"/>
<module name="MemberName"/>
<module name="MethodName"/>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<!-- See http://checkstyle.sf.net/config_regexp.html -->
<module name="Regexp">
<property name="format" value=" //[^ ]"/>
<property name="illegalPattern" value="true"/>
<message key="illegal.regexp" value="missing space after ''//'' in comment."/>
</module>
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<module name="LineLength"/>
<module name="MethodLength"/>
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
</module>
<!-- See http://checkstyle.sf.net/config_misc.html -->
<!--
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf_cr_crlf"/>
</module>
-->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<module name="FileLength"/>
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<module name="FileTabCharacter"/>
</module>