-
Notifications
You must be signed in to change notification settings - Fork 2
/
madie-checkstyle.xml
89 lines (72 loc) · 3.77 KB
/
madie-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
<?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="severity" value="error" />
<property name="fileExtensions" value="java, properties, xml" />
<!-- https://checkstyle.sourceforge.io/config_sizes.html#FileLength -->
<module name="FileLength">
<property name="max" value="1000" />
</module>
<module name="SuppressionFilter">
<property name="file" value="suppressions.xml"/>
<property name="optional" value="false"/>
</module>
<!-- https://checkstyle.sourceforge.io/config_sizes.html#LineLength -->
<module name="LineLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="100"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="SuppressWarningsFilter" />
<module name="TreeWalker">
<module name="SuppressWarningsHolder" />
<!-- https://checkstyle.sourceforge.io/config_sizes.html#MethodLength -->
<module name="MethodLength">
<property name="tokens" value="METHOD_DEF" />
<property name="countEmpty" value="false" />
<property name="max" value="210" />
</module>
<!-- https://checkstyle.sourceforge.io/config_misc.html#OuterTypeFilename -->
<module name="OuterTypeFilename" />
<!-- https://checkstyle.sourceforge.io/config_coding.html#IllegalTokenText -->
<module name="IllegalTokenText">
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL" />
<property name="format"
value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)" />
<property name="message"
value="Consider using special escape sequence instead of octal value or Unicode escaped value." />
</module>
<!-- https://checkstyle.sourceforge.io/config_misc.html#AvoidEscapedUnicodeCharacters -->
<module name="AvoidEscapedUnicodeCharacters">
<property name="allowEscapesForControlCharacters"
value="true" />
<property name="allowByTailComment" value="true" />
<property name="allowNonPrintableEscapes" value="true" />
</module>
<!-- https://checkstyle.sourceforge.io/config_design.html#OneTopLevelClass -->
<module name="OneTopLevelClass" />
<!-- https://checkstyle.sourceforge.io/config_blocks.html#EmptyBlock -->
<module name="EmptyBlock">
<property name="option" value="TEXT" />
<property name="tokens"
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH" />
</module>
<!-- https://checkstyle.sourceforge.io/config_blocks.html#NeedBraces -->
<module name="NeedBraces" />
<!-- https://checkstyle.sourceforge.io/config_coding.html#MultipleVariableDeclarations -->
<module name="MultipleVariableDeclarations" />
<!-- https://checkstyle.sourceforge.io/config_misc.html#ArrayTypeStyle -->
<module name="ArrayTypeStyle" />
<!-- https://checkstyle.sourceforge.io/config_coding.html#MissingSwitchDefault -->
<module name="MissingSwitchDefault" />
<!-- https://checkstyle.sourceforge.io/config_coding.html#FallThrough -->
<module name="FallThrough" />
<!-- https://checkstyle.sourceforge.io/config_misc.html#UpperEll -->
<module name="UpperEll" />
<!-- https://checkstyle.sourceforge.io/config_modifier.html#ModifierOrder -->
<module name="ModifierOrder"/>
</module>
</module>