forked from tag-bio/umap-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
181 lines (180 loc) · 7.92 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="severity" value="warning"/>
<property name="fileExtensions" value="java, properties, xml"/>
<module name="TreeWalker">
<module name="ConstantName">
<property name="format" value="^[A-Z](_?[A-Z0-9]+)*$"/>
</module>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName">
<property name="format" value="^m[A-Z](_?[a-zA-Z0-9]+)*$"/>
</module>
<module name="MethodName">
<property name="format" value="^(native_)?[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName">
<property name="format" value="^s[A-Z](_?[a-zA-Z0-9]+)*$"/>
</module>
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="MethodLength"/>
<module name="ParameterNumber">
<property name="max" value="9"/>
<property name="tokens" value="METHOD_DEF"/>
</module>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore">
<property name="tokens" value="POST_DEC,POST_INC"/>
</module>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<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_ASSERT,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,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,QUESTION"/>
</module>
<module name="ModifierOrder"/>
<module name="RedundantModifier">
<property name="tokens" value="ANNOTATION_FIELD_DEF, INTERFACE_DEF, CTOR_DEF, CLASS_DEF, ENUM_DEF"/>
</module>
<module name="AvoidNestedBlocks"/>
<module name="LeftCurly"/>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<module name="EqualsHashCode"/>
<module name="HiddenField"/>
<module name="IllegalInstantiation"/>
<module name="MissingSwitchDefault"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="VisibilityModifier">
<property name="packageAllowed" value="true"/>
<property name="protectedAllowed" value="true"/>
</module>
<module name="ArrayTypeStyle"/>
<module name="RegexpSinglelineJava">
<property name="format" value="^[^"]+\s+\[\]"/>
<property name="message" value="Array brackets must not have preceeding spaces"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\snew\s\S+\s+\["/>
<property name="message" value="Array brackets must not have preceeding spaces"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="^[^"/\*]+\][a-zA-Z_]"/>
<property name="message" value="Array brackets must have following space"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="^\s+/\*\*\s+.*[^/]$"/>
<property name="message" value="Start multiline javadoc comments on the next line, please"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="^\s+\*\s.*\*/"/>
<property name="message" value="End multiline javadoc comments on the next line, please"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="<\s+\?"/>
<property name="message" value="Remove space before wildcard type"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\?\s+>"/>
<property name="message" value="Remove space after wildcard type"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="Frame<\?>"/>
<property name="message" value="Frame wildcard should extend Residue"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\$Revision"/>
<property name="message" value="Use of Revision is deprecated"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="break[ -]end"/>
<property name="message" value="Use breakend rather than break end"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="(?s)/\*[*\s]*\*/"/>
<property name="message" value="Vacuous comment"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\* *@param +[a-zA-Z0-9_]+ *$"/>
<property name="message" value="Vacuous comment"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\* *@param +([a-zA-Z0-9_]+) +\1 *$"/>
<property name="message" value="Low value comment"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\* *@[a-z]+ +[a-zA-Z0-9_]+ +TODO *$"/>
<property name="message" value="Lazy comment"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="\* *@return *$"/>
<property name="message" value="Vacuous comment"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="[A-Za-z]+\[\](\[\])*\s+[A-Za-z0-9_]+\s+=\s+new\s+[A-Za-z]+\[\](\[\])*\s+\{"/>
<property name="message" value="Unnecessary use of new type in constant array declaration"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="UpperEll"/>
<module name="JavadocType">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
</module>
<!-- <module name="MissingJavadocMethod"> -->
<!-- <property name="scope" value="public"/> -->
<!-- <property name="allowMissingPropertyJavadoc" value="true"/> -->
<!-- </module> -->
<module name="JavadocVariable">
<property name="scope" value="public"/>
</module>
<module name="JavadocStyle">
<property name="scope" value="public"/>
<property name="checkFirstSentence" value="false"/>
</module>
<module name="FinalLocalVariable"/>
<module name="DefaultComesLast"/>
<module name="CovariantEquals"/>
<module name="FinalClass"/>
<module name="IllegalThrows">
<property name="illegalClassNames" value="java.lang.Throwable,java.lang.Error"/>
</module>
<module name="IllegalTokenText">
<property name="tokens" value="NUM_INT,NUM_LONG"/>
<property name="format" value="^0[^lxb]"/>
<property name="ignoreCase" value="true"/>
</module>
<module name="SuperClone"/>
<module name="UnnecessaryParentheses"/>
<module name="ParameterAssignment"/>
<module name="SuppressionCommentFilter"/>
</module>
<module name="FileLength">
<property name="max" value="900"/>
</module>
<module name="FileTabCharacter"/>
<module name="NewlineAtEndOfFile">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="Translation"/>
</module>