Skip to content

Commit 2da2d6a

Browse files
committed
Format XML
1 parent 6aefb42 commit 2da2d6a

1 file changed

Lines changed: 118 additions & 133 deletions

File tree

src/conf/checkstyle.xml

Lines changed: 118 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
<?xml version="1.0"?>
2-
<!--
3-
Licensed to the Apache Software Foundation (ASF) under one or more
4-
contributor license agreements. See the NOTICE file distributed with
5-
this work for additional information regarding copyright ownership.
6-
The ASF licenses this file to You under the Apache License, Version 2.0
7-
(the "License"); you may not use this file except in compliance with
8-
the License. You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing, software
13-
distributed under the License is distributed on an "AS IS" BASIS,
14-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
See the License for the specific language governing permissions and
16-
limitations under the License.
17-
-->
2+
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional
3+
information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except
4+
in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to
5+
in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
6+
the License for the specific language governing permissions and limitations under the License. -->
187

198
<!DOCTYPE module PUBLIC
209
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
@@ -23,129 +12,125 @@ limitations under the License.
2312
<!-- Checkstyle configuration that checks the commons-cli coding conventions -->
2413

2514
<module name="Checker">
26-
<property name="localeLanguage" value="en"/>
27-
28-
<!-- Checks that a package.html file exists for each package. -->
29-
<!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
30-
<module name="JavadocPackage"/>
15+
<property name="localeLanguage" value="en" />
16+
17+
<!-- Checks that a package.html file exists for each package. -->
18+
<!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
19+
<module name="JavadocPackage" />
20+
21+
<!-- Checks whether files end with a new line. -->
22+
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
23+
<module name="NewlineAtEndOfFile" />
24+
25+
<!-- Checks that property files contain the same keys. -->
26+
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
27+
<module name="Translation" />
28+
29+
<module name="FileTabCharacter">
30+
<property name="eachLine" value="true" />
31+
</module>
32+
33+
<module name="LineLength">
34+
<property name="max" value="160" />
35+
</module>
36+
37+
<module name="TreeWalker">
38+
<module name="LeftCurly" />
39+
40+
<!-- Checks for Javadoc comments. -->
41+
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
42+
<module name="JavadocType" />
43+
<module name="JavadocVariable" />
44+
45+
<!-- Checks for Naming Conventions. -->
46+
<!-- See http://checkstyle.sf.net/config_naming.html -->
47+
<module name="ConstantName" />
48+
<module name="LocalFinalVariableName" />
49+
<module name="LocalVariableName" />
50+
<module name="MemberName" />
51+
<module name="MethodName" />
52+
<module name="PackageName" />
53+
<module name="ParameterName" />
54+
<module name="StaticVariableName" />
55+
<module name="TypeName" />
56+
57+
<!-- Checks for imports -->
58+
<!-- See http://checkstyle.sf.net/config_import.html -->
59+
<module name="AvoidStarImport" />
60+
<module name="IllegalImport" /> <!-- defaults to sun.* packages -->
61+
<module name="RedundantImport" />
62+
<module name="UnusedImports" />
63+
64+
<!-- Checks for Size Violations. -->
65+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
66+
<!--<module name="FileLength"/> -->
67+
<module name="MethodLength" />
68+
<module name="ParameterNumber">
69+
<property name="max" value="9" />
70+
</module>
3171

32-
<!-- Checks whether files end with a new line. -->
33-
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
34-
<module name="NewlineAtEndOfFile"/>
72+
<!-- Checks for whitespace -->
73+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
74+
<module name="EmptyForIteratorPad" />
75+
<module name="NoWhitespaceAfter" />
76+
<module name="NoWhitespaceBefore" />
77+
<module name="ParenPad" />
78+
79+
<module name="WhitespaceAfter" />
80+
<module name="WhitespaceAround">
81+
<property name="tokens"
82+
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND" />
83+
</module>
3584

36-
<!-- Checks that property files contain the same keys. -->
37-
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
38-
<module name="Translation"/>
85+
<!-- Modifier Checks -->
86+
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
87+
<module name="ModifierOrder" />
88+
<module name="RedundantModifier" />
3989

40-
<module name="FileTabCharacter">
41-
<property name="eachLine" value="true"/>
90+
<!-- Checks for blocks. You know, those {}'s -->
91+
<!-- See http://checkstyle.sf.net/config_blocks.html -->
92+
<module name="AvoidNestedBlocks" />
93+
<module name="EmptyBlock">
94+
<property name="option" value="text" />
4295
</module>
43-
44-
<module name="LineLength">
45-
<property name="max" value="160"/>
96+
<module name="NeedBraces" />
97+
98+
<!-- Checks for common coding problems -->
99+
<!-- See http://checkstyle.sf.net/config_coding.html -->
100+
<module name="CovariantEquals" />
101+
<module name="EqualsHashCode" />
102+
<module name="IllegalInstantiation" />
103+
<module name="InnerAssignment" />
104+
<module name="MagicNumber">
105+
<property name="ignoreNumbers" value="-1,0,1,2,3" />
106+
</module>
107+
<module name="SimplifyBooleanExpression" />
108+
<module name="SimplifyBooleanReturn" />
109+
<module name="StringLiteralEquality" />
110+
<module name="SuperClone" />
111+
<module name="SuperFinalize" />
112+
<module name="ExplicitInitialization" />
113+
<module name="DefaultComesLast" />
114+
<module name="FallThrough" />
115+
<module name="MultipleVariableDeclarations" />
116+
<module name="UnnecessaryParentheses" />
117+
118+
<!-- Checks for class design -->
119+
<!-- See http://checkstyle.sf.net/config_design.html -->
120+
<module name="FinalClass" />
121+
<module name="HideUtilityClassConstructor" />
122+
<module name="InterfaceIsType" />
123+
<module name="VisibilityModifier">
124+
<property name="protectedAllowed" value="true" />
46125
</module>
47126

48-
<module name="TreeWalker">
49-
<module name="LeftCurly" />
50-
51-
<!-- Checks for Javadoc comments. -->
52-
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
53-
<module name="JavadocType"/>
54-
<module name="JavadocVariable"/>
55-
56-
<!-- Checks for Naming Conventions. -->
57-
<!-- See http://checkstyle.sf.net/config_naming.html -->
58-
<module name="ConstantName"/>
59-
<module name="LocalFinalVariableName"/>
60-
<module name="LocalVariableName"/>
61-
<module name="MemberName"/>
62-
<module name="MethodName"/>
63-
<module name="PackageName"/>
64-
<module name="ParameterName"/>
65-
<module name="StaticVariableName"/>
66-
<module name="TypeName"/>
67-
68-
<!-- Checks for imports -->
69-
<!-- See http://checkstyle.sf.net/config_import.html -->
70-
<module name="AvoidStarImport"/>
71-
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
72-
<module name="RedundantImport"/>
73-
<module name="UnusedImports"/>
74-
75-
<!-- Checks for Size Violations. -->
76-
<!-- See http://checkstyle.sf.net/config_sizes.html -->
77-
<!--<module name="FileLength"/>-->
78-
<module name="MethodLength"/>
79-
<module name="ParameterNumber">
80-
<property name="max" value="9"/>
81-
</module>
82-
83-
<!-- Checks for whitespace -->
84-
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
85-
<module name="EmptyForIteratorPad"/>
86-
<module name="NoWhitespaceAfter"/>
87-
<module name="NoWhitespaceBefore"/>
88-
<module name="ParenPad"/>
89-
90-
<module name="WhitespaceAfter"/>
91-
<module name="WhitespaceAround">
92-
<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
93-
</module>
94-
95-
<!-- Modifier Checks -->
96-
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
97-
<module name="ModifierOrder"/>
98-
<module name="RedundantModifier"/>
99-
100-
<!-- Checks for blocks. You know, those {}'s -->
101-
<!-- See http://checkstyle.sf.net/config_blocks.html -->
102-
<module name="AvoidNestedBlocks"/>
103-
<module name="EmptyBlock">
104-
<property name="option" value="text"/>
105-
</module>
106-
<module name="NeedBraces"/>
107-
108-
<!-- Checks for common coding problems -->
109-
<!-- See http://checkstyle.sf.net/config_coding.html -->
110-
<module name="CovariantEquals"/>
111-
<module name="EqualsHashCode"/>
112-
<module name="IllegalInstantiation"/>
113-
<module name="InnerAssignment"/>
114-
<module name="MagicNumber">
115-
<property name="ignoreNumbers" value="-1,0,1,2,3"/>
116-
</module>
117-
<module name="SimplifyBooleanExpression"/>
118-
<module name="SimplifyBooleanReturn"/>
119-
<module name="StringLiteralEquality"/>
120-
<module name="SuperClone"/>
121-
<module name="SuperFinalize"/>
122-
<module name="ExplicitInitialization"/>
123-
<module name="DefaultComesLast"/>
124-
<module name="FallThrough"/>
125-
<module name="MultipleVariableDeclarations"/>
126-
<module name="UnnecessaryParentheses"/>
127-
128-
<!-- Checks for class design -->
129-
<!-- See http://checkstyle.sf.net/config_design.html -->
130-
<module name="FinalClass"/>
131-
<module name="HideUtilityClassConstructor"/>
132-
<module name="InterfaceIsType"/>
133-
<module name="VisibilityModifier">
134-
<property name="protectedAllowed" value="true"/>
135-
</module>
136-
137-
<!-- Miscellaneous other checks. -->
138-
<!-- See http://checkstyle.sf.net/config_misc.html -->
139-
<module name="ArrayTypeStyle"/>
140-
<!--
141-
<module name="GenericIllegalRegexp">
142-
<property name="format" value="\s+$"/>
143-
<property name="message" value="Line has trailing spaces."/>
144-
</module>
145-
-->
146-
<module name="TodoComment"/>
147-
<module name="UpperEll"/>
127+
<!-- Miscellaneous other checks. -->
128+
<!-- See http://checkstyle.sf.net/config_misc.html -->
129+
<module name="ArrayTypeStyle" />
130+
<!-- <module name="GenericIllegalRegexp"> <property name="format" value="\s+$"/> <property name="message" value="Line has trailing spaces."/> </module> -->
131+
<module name="TodoComment" />
132+
<module name="UpperEll" />
148133

149-
</module>
134+
</module>
150135

151136
</module>

0 commit comments

Comments
 (0)