-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
131 lines (114 loc) · 4.55 KB
/
Copy pathcheckstyle.xml
File metadata and controls
131 lines (114 loc) · 4.55 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
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
<?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">
<!--
Formatting (whitespace/brace/line-wrap) checks have been disabled
because the Eclipse formatter profile (metricshub-eclipse-formatter.xml) covers these rules.
-->
<!-- Keep checking that files end with a newline -->
<module name="NewlineAtEndOfFile" />
<!-- Translation checks (not formatting-related) -->
<module name="Translation" />
<!-- File-length checks (size, not formatting) -->
<!-- module name="FileLength" /-->
<!-- Disable strictly formatting-related regex (trailing spaces) -->
<!--
<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">
<!-- Suppression of specific rules -->
<!-- CHECKSTYLE.OFF: <ruleName> -->
<!-- CHECKSTYLE.ON: <ruleName> -->
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
<property name="checkFormat" value="$1" />
</module>
<!-- Naming conventions (unaffected by formatter) -->
<module name="ConstantName" />
<module name="LocalFinalVariableName" />
<module name="LocalVariableName" />
<module name="MemberName" />
<module name="MethodName" />
<module name="PackageName" />
<module name="ParameterName" />
<module name="StaticVariableName" />
<module name="TypeName" />
<!-- Import-related checks (not formatting) -->
<module name="AvoidStarImport" />
<module name="IllegalImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<!-- Size checks (not formatting) -->
<module name="MethodLength">
<property name="max" value="2000" />
</module>
<module name="ParameterNumber">
<property name="tokens" value="METHOD_DEF" />
</module>
<!-- Disable all whitespace/indent/wrapping checks because the Eclipse formatter enforces
spacing -->
<!--
<module name="EmptyForIteratorPad"/>
<module name="GenericWhitespace"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA, SEMI"/>
</module>
<module name="WhitespaceAround">
<property name="tokens" value="ASSIGN, BAND_ASSIGN, BOR_ASSIGN, BSR_ASSIGN, BXOR_ASSIGN,
COLON, DIV_ASSIGN, EQUAL, GE, GT, LE, LITERAL_RETURN, LT,
MINUS_ASSIGN, MOD_ASSIGN, NOT_EQUAL, PLUS_ASSIGN, QUESTION,
SL_ASSIGN, SR_ASSIGN, STAR_ASSIGN"/>
</module>
-->
<!-- Modifier checks (unaffected by formatting) -->
<module name="ModifierOrder" />
<module name="RedundantModifier" />
<!-- Block-level checks (only disabling Opening‐brace style) -->
<module name="AvoidNestedBlocks">
<property name="allowInSwitchCase " value="true" />
</module>
<module name="NeedBraces" />
<!-- Common coding problem checks (unaffected by formatting) -->
<module name="EmptyStatement" />
<module name="EqualsHashCode" />
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true" />
<property name="ignoreSetter" value="true" />
</module>
<module name="IllegalInstantiation" />
<module name="InnerAssignment" />
<module name="MissingSwitchDefault" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<!-- Design checks (unrelated to formatting) -->
<module name="FinalClass" />
<module name="HideUtilityClassConstructor" />
<module name="InterfaceIsType" />
<module name="VisibilityModifier" />
<!-- Miscellaneous (keep non-formatting Todo checks) -->
<module name="ArrayTypeStyle" />
<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>