Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
Latest commit
124 lines (123 loc) · 5.38 KB
/
Copy pathcheckstyle.xml
File metadata and controls
124 lines (123 loc) · 5.38 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPEmodule PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<modulename="Checker">
<propertyname="charset"value="UTF-8"/>
<modulename="TreeWalker">
<modulename="AnnotationLocation">
<propertyname="allowSamelineSingleParameterlessAnnotation"value="false"/>
</module>
<modulename="AnnotationUseStyle"/>
<modulename="MissingDeprecated"/>
<modulename="MissingOverride"/>
<modulename="AvoidNestedBlocks">
<propertyname="allowInSwitchCase"value="true"/>
</module>
<modulename="LeftCurly">
<propertyname="ignoreEnums"value="false"/>
</module>
<modulename="NeedBraces"/>
<modulename="RightCurly"/>
<modulename="HideUtilityClassConstructor"/>
<modulename="OneTopLevelClass"/>
<modulename="VisibilityModifier"/>
<modulename="CovariantEquals"/>
<modulename="DeclarationOrder"/>
<modulename="DefaultComesLast"/>
<modulename="EmptyStatement"/>
<modulename="EqualsAvoidNull"/>
<modulename="EqualsHashCode"/>
<modulename="ExplicitInitialization"/>
<modulename="FinalLocalVariable"/>
<modulename="IllegalInstantiation">
<propertyname="classes"value="java.lang.Boolean"/>
</module>
<modulename="IllegalTokenText">
<propertyname="tokens"value="NUM_INT,NUM_LONG"/>
<propertyname="format"value="^0[^lx]"/>
<propertyname="ignoreCase"value="true"/>
</module>
<modulename="IllegalType">
<propertyname="illegalClassNames"value="java.util.HashSet, java.util.HashMap, java.util.TreeSet, java.util.TreeMap"/>
</module>
<modulename="InnerAssignment"/>
<modulename="MissingSwitchDefault"/>
<modulename="MultipleVariableDeclarations"/>
<modulename="NoFinalizer"/>
<modulename="OneStatementPerLine"/>
<modulename="OverloadMethodsDeclarationOrder"/>
<modulename="PackageDeclaration"/>
<modulename="SimplifyBooleanExpression"/>
<modulename="SimplifyBooleanReturn"/>
<modulename="StringLiteralEquality"/>
<modulename="UnnecessaryParentheses"/>
<modulename="AvoidStarImport"/>
<modulename="IllegalImport">
<propertyname="illegalPkgs"value="sun, junit.framework"/>
</module>
<modulename="RedundantImport"/>
<modulename="UnusedImports"/>
<modulename="ArrayTypeStyle"/>
<modulename="CommentsIndentation"/>
<!-- Comparing this with null (i.e. this == null and this != null): -->
<modulename="DescendantToken">
<propertyname="tokens"value="EQUAL,NOT_EQUAL"/>
<propertyname="limitedTokens"value="LITERAL_THIS,LITERAL_NULL"/>
<propertyname="maximumNumber"value="1"/>
<propertyname="maximumDepth"value="1"/>
<propertyname="sumTokenCounts"value="true"/>
</module>
<!--The initialiser in for performs no setup (where a while statement could be used instead): -->
<modulename="DescendantToken">
<propertyname="tokens"value="FOR_INIT"/>
<propertyname="limitedTokens"value="EXPR"/>
<propertyname="minimumNumber"value="1"/>
</module>
<modulename="OuterTypeFilename"/>
<modulename="UpperEll"/>
<modulename="ModifierOrder"/>
<modulename="RedundantModifier"/>
<modulename="ClassTypeParameterName"/>
<modulename="ConstantName"/>
<modulename="InterfaceTypeParameterName"/>
<modulename="LocalFinalVariableName"/>
<modulename="LocalVariableName"/>
<modulename="MemberName"/>
<modulename="MethodName"/>
<modulename="MethodTypeParameterName"/>
<modulename="PackageName">
<propertyname="format"value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
</module>
<modulename="ParameterName"/>
<modulename="StaticVariableName"/>
<modulename="TypeName"/>
<modulename="OuterTypeNumber"/>
<modulename="GenericWhitespace"/>
<modulename="MethodParamPad"/>
<!--<module name="ParenPad"/> disabled due to the bug in the NetBeans (nb-javac)
"try with resources formatting adding extra space" https://github.com/apache/netbeans/issues/3720
Let's make our life easier, just skip this check temporarily -->
<modulename="TypecastParenPad"/>
<modulename="WhitespaceAfter"/>
<modulename="WhitespaceAround">
<propertyname="tokens"value="ASSIGN"/>
</module>
</module>
<modulename="LineLength">
<propertyname="max"value="120"/>
<propertyname="ignorePattern"value="^ *\* *[^ ]+$"/>
</module>
<modulename="NewlineAtEndOfFile">
<propertyname="lineSeparator"value="lf"/>
</module>
<modulename="UniqueProperties"/>
<!-- the check to find trailing whitespace at the end of a line: -->
<modulename="RegexpSingleline">
<!-- \s matches whitespace character, $ matches end of line. -->
<propertyname="format"value="\s+$"/>
</module>
<modulename="FileTabCharacter">
<propertyname="eachLine"value="true"/>
</module>
</module>