-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckstyle.xml
72 lines (55 loc) · 2.01 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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8" />
<property name="fileExtensions" value="java, xml" />
<property name="severity" value="warning" />
<module name="FileLength" />
<module name="NewlineAtEndOfFile" />
<module name="TreeWalker">
<property name="fileExtensions" value="java" />
<property name="tabWidth" value="4" />
<module name="AvoidNestedBlocks" />
<module name="EmptyLineSeparator">
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false" />
<property name="tokens"
value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF" />
</module>
<module name="GenericWhitespace" />
<module name="JavadocMethod">
<property name="allowedAnnotations"
value="Override, BeforeAll, BeforeEach, Test, AfterEach, AfterAll" />
<property name="scope" value="protected" />
</module>
<module name="JavadocStyle" />
<module name="JavadocType" />
<module name="JavadocMethod">
<property name="allowedAnnotations"
value="Override, BeforeAll, BeforeEach, Test, AfterEach, AfterAll" />
<property name="scope" value="protected" />
</module>
<module name="JavadocMethod">
<property name="scope" value="private" />
<property name="allowMissingJavadoc" value="true" />
</module>
<module name="EmptyBlock">
<property name="option" value="text" />
</module>
<module name="LeftCurly" />
<module name="LineLength">
<property name="max" value="120" />
</module>
<module name="MethodParamPad" />
<module name="NeedBraces" />
<module name="Regexp">
<property name="format" value="[ \t]+$" />
<property name="illegalPattern" value="true" />
<property name="message" value="Trailing whitespace" />
</module>
<module name="RightCurly">
<property name="option" value="same" />
</module>
</module>
</module>