-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
85 lines (66 loc) · 2.87 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
<?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">
<module name="LineLength">
<property name="severity" value="warning"/>
<property name="fileExtensions" value="java"/>
<property name="max" value="100"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<!-- Filter out Checkstyle warnings that have been suppressed with the @SuppressWarnings annotation -->
<module name="SuppressWarningsFilter" />
<module name="TreeWalker">
<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
<module name="SuppressWarningsHolder" />
<module name="CyclomaticComplexity">
<property name="severity" value="warning"/>
<property name="switchBlockAsSingleDecisionPoint" value="true"/>
<property name="max" value="6"/>
</module>
<module name="Indentation">
<property name="severity" value="warning"/>
</module>
<module name="UnusedImports">
<property name="severity" value="warning"/>
</module>
<module name="MethodLength">
<property name="severity" value="warning"/>
<property name="tokens" value="METHOD_DEF, CTOR_DEF, COMPACT_CTOR_DEF"/>
<property name="max" value="50"/>
</module>
<module name="CommentsIndentation">
<property name="severity" value="warning"/>
</module>
<module name="SingleSpaceSeparator">
<property name="severity" value="warning"/>
<property name="validateComments" value="true"/>
</module>
<module name="NeedBraces">
<property name="severity" value="warning"/>
<property name="tokens" value="LITERAL_CASE, LITERAL_DEFAULT"/>
<property name="allowSingleLineStatement" value="true"/>
</module>
<module name="StringLiteralEquality">
<property name="severity" value="warning"/>
</module>
<module name="SimplifyBooleanReturn">
<property name="severity" value="warning"/>
</module>
<module name="EqualsHashCode">
<property name="severity" value="warning"/>
</module>
<module name="RightCurly">
<property name="option" value="alone_or_singleline"/>
<property name="tokens" value="LITERAL_IF, METHOD_DEF, LITERAL_TRY"/>
</module>
<module name="ConstantName">
<property name="format"
value="^log(ger)?$|^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
</module>
<module name="LeftCurly">
<property name="severity" value="warning"/>
</module>
</module>
</module>