Repository navigation
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
103 lines (87 loc) · 3.3 KB
/
Copy pathcheckstyle.xml
File metadata and controls
103 lines (87 loc) · 3.3 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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<!--
Comment out or remove this if you don't care about
"File does not end with a newline" errors:
-->
<!-- <module name="NewlineAtEndOfFile"/> -->
<module name="Translation"/>
<module name="FileLength"/>
<!--
RegexpSingleline checks remain commented. If you want
them back, remove the comments and fix the code.
-->
<!--
<module name="RegexpSingleline">
<property name="format" value="^\s* +\s*[^*]" />
<property name="message" value="Indentation must use tab characters" />
</module>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>
-->
<module name="TreeWalker">
<!-- LeftCurly: let braces be on same line or next line -->
<module name="LeftCurly">
<property name="option" value="eol"/>
</module>
<!-- Keep checks you still want. -->
<module name="IllegalImport"/>
<!-- <module name="RedundantImport"/> -->
<module name="UnusedImports"/>
<!-- Relax MethodLength to allow up to 750 lines. -->
<module name="MethodLength">
<property name="max" value="750"/>
</module>
<!-- Relax ParameterNumber to allow up to 10 parameters. -->
<module name="ParameterNumber">
<property name="tokens" value="METHOD_DEF"/>
<property name="max" value="10"/>
</module>
<!--
NeedBraces is generating warnings for if/for constructs
that don’t use braces. If you do not want to fix code,
comment out or remove the entire check:
-->
<!-- <module name="NeedBraces"/> -->
<module name="GenericWhitespace"/>
<module name="EqualsHashCode"/>
<module name="IllegalInstantiation"/>
<module name="FinalClass"/>
<!--
HideUtilityClassConstructor is complaining about
“Utility classes should not have a public or default constructor.”
If you don’t want to fix it, remove this check:
-->
<!-- <module name="HideUtilityClassConstructor"/> -->
<!--
InterfaceIsType complains about interfaces with no methods.
Remove if you don’t want to fix code:
-->
<!-- <module name="InterfaceIsType"/> -->
<!--
If you don’t want to see warnings for “TODO” / “FIXME” / “XXX”,
remove or comment out the checks entirely:
-->
<!--
<module name="TodoComment">
<property name="format" value="FIXME"/>
</module>
<module name="TodoComment">
<property name="format" value="TODO"/>
<property name="severity" value="warning"/>
</module>
<module name="TodoComment">
<property name="format" value="XXX"/>
<property name="severity" value="warning"/>
</module>
-->
<module name="UpperEll"/>
</module>
</module>