33 "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
44 "https://checkstyle.org/dtds/configuration_1_3.dtd">
55
6- <!-- Based on sun_checks.xml V9.3 (https://github.com/checkstyle/checkstyle/blob/checkstyle-9.3 /src/main/resources/sun_checks.xml) -->
6+ <!-- Based on sun_checks.xml V10.7.0 (https://github.com/checkstyle/checkstyle/blob/checkstyle-10.7.0 /src/main/resources/sun_checks.xml) -->
77
88<!--
99Checkstyle configuration that checks the sun coding conventions from:
@@ -31,9 +31,12 @@ Checkstyle configuration that checks the sun coding conventions from:
3131 -->
3232 <property name =" severity" value =" error" />
3333
34+ <!-- BorderTech: Override for how many spaces a tab takes from 8 to 4 when Checkstyle prints messages. -->
35+ <property name =" tabWidth" value =" 4" />
36+
3437 <!-- BorderTech: Filter out Checkstyle warnings that have been suppressed with the @SuppressWarnings annotation. -->
3538 <!-- SuppressWarningsFilter and SuppressWarningsHolder have to be used together. -->
36- <module name =" SuppressWarningsFilter" />
39+ <module name =" SuppressWarningsFilter" />
3740
3841 <!-- BorderTech: only check java files
3942 <property name="fileExtensions" value="java, properties, xml"/>
@@ -49,13 +52,16 @@ Checkstyle configuration that checks the sun coding conventions from:
4952 <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
5053 <module name =" SuppressionFilter" >
5154 <property name =" file" value =" ${org.checkstyle.sun.suppressionfilter.config}"
52- default =" checkstyle-suppressions.xml" />
55+ default =" checkstyle-suppressions.xml" />
5356 <property name =" optional" value =" true" />
5457 </module >
5558
5659 <!-- Checks that a package-info.java file exists for each package. -->
5760 <!-- See https://checkstyle.org/config_javadoc.html#JavadocPackage -->
58- <module name =" JavadocPackage" />
61+ <module name =" JavadocPackage" >
62+ <!-- BorderTech: Override to warning -->
63+ <property name =" severity" value =" warning" />
64+ </module >
5965
6066 <!-- Checks whether files end with a new line. -->
6167 <!-- See https://checkstyle.org/config_misc.html#NewlineAtEndOfFile -->
@@ -69,14 +75,14 @@ Checkstyle configuration that checks the sun coding conventions from:
6975 <!-- See https://checkstyle.org/config_sizes.html -->
7076 <module name =" FileLength" >
7177 <!-- BorderTech: Override to warning -->
72- <property name =" severity" value =" warning" />
78+ <property name =" severity" value =" warning" />
7379 </module >
7480 <module name =" LineLength" >
7581 <property name =" fileExtensions" value =" java" />
7682 <!-- BorderTech: Override from 80 to 150 -->
77- <property name =" max" value =" 150" />
83+ <property name =" max" value =" 150" />
7884 <!-- BorderTech: Override to warning -->
79- <property name =" severity" value =" warning" />
85+ <property name =" severity" value =" warning" />
8086 </module >
8187
8288 <!-- See https://checkstyle.org/config_whitespace.html -->
@@ -88,7 +94,6 @@ Checkstyle configuration that checks the sun coding conventions from:
8894 <module name =" RegexpSingleline" >
8995 <property name =" format" value =" ^(\t*( +\t*(?! \*|\S))|( ))" />
9096 <property name =" message" value =" Indentation should be tabs." />
91- <property name =" maximum" value =" 10" />
9297 </module >
9398
9499 <!-- Miscellaneous other checks. -->
@@ -99,7 +104,7 @@ Checkstyle configuration that checks the sun coding conventions from:
99104 <property name =" maximum" value =" 0" />
100105 <property name =" message" value =" Line has trailing spaces." />
101106 <!-- BorderTech: Override to warning -->
102- <property name =" severity" value =" warning" />
107+ <property name =" severity" value =" warning" />
103108 </module >
104109
105110 <!-- Checks for Headers -->
@@ -111,18 +116,15 @@ Checkstyle configuration that checks the sun coding conventions from:
111116
112117 <module name =" TreeWalker" >
113118
114- <!-- BorderTech: Override for how many spaces a tab takes from 8 to 4 -->
115- <property name =" tabWidth" value =" 4" />
116-
117119 <!-- BorderTech: Make the @SuppressWarnings annotations available to Checkstyle -->
118120 <!-- SuppressWarningsFilter and SuppressWarningsHolder have to be used together. -->
119- <module name =" SuppressWarningsHolder" />
121+ <module name =" SuppressWarningsHolder" />
120122
121123 <!-- Checks for Javadoc comments. -->
122124 <!-- See https://checkstyle.org/config_javadoc.html -->
123125 <module name =" InvalidJavadocPosition" >
124126 <!-- BorderTech: Override to warning -->
125- <property name =" severity" value =" warning" />
127+ <property name =" severity" value =" warning" />
126128 </module >
127129
128130 <module name =" JavadocMethod" >
@@ -156,23 +158,26 @@ Checkstyle configuration that checks the sun coding conventions from:
156158 <module name =" RedundantImport" />
157159 <module name =" UnusedImports" >
158160 <!-- BorderTech: Check javadoc as well -->
159- <property name =" processJavadoc" value =" true" />
161+ <property name =" processJavadoc" value =" true" />
160162 </module >
161163
162164 <!-- Checks for Size Violations. -->
163165 <!-- See https://checkstyle.org/config_sizes.html -->
164166 <module name =" MethodLength" >
165167 <!-- BorderTech: Override to warning -->
166- <property name =" severity" value =" warning" />
168+ <property name =" severity" value =" warning" />
167169 </module >
168170 <module name =" ParameterNumber" >
169171 <!-- BorderTech: Override to warning -->
170- <property name =" severity" value =" warning" />
172+ <property name =" severity" value =" warning" />
171173 </module >
172174
173175 <!-- Checks for whitespace -->
174176 <!-- See https://checkstyle.org/config_whitespace.html -->
175- <module name =" EmptyForIteratorPad" />
177+ <module name =" EmptyForIteratorPad" >
178+ <!-- BorderTech: Override to warning as IntelliJ does not currently allow for this-->
179+ <property name =" severity" value =" warning" />
180+ </module >
176181 <module name =" GenericWhitespace" />
177182 <module name =" MethodParamPad" />
178183 <module name =" NoWhitespaceAfter" >
@@ -191,7 +196,7 @@ Checkstyle configuration that checks the sun coding conventions from:
191196 <module name =" ModifierOrder" />
192197 <module name =" RedundantModifier" >
193198 <!-- BorderTech: Override to warning -->
194- <property name =" severity" value =" warning" />
199+ <property name =" severity" value =" warning" />
195200 </module >
196201
197202 <!-- Checks for blocks. You know, those {}'s -->
@@ -202,7 +207,7 @@ Checkstyle configuration that checks the sun coding conventions from:
202207 </module >
203208 <module name =" EmptyBlock" >
204209 <!-- BorderTech: Override to warning -->
205- <property name =" severity" value =" warning" />
210+ <property name =" severity" value =" warning" />
206211 </module >
207212 <module name =" LeftCurly" />
208213 <module name =" NeedBraces" />
@@ -212,30 +217,30 @@ Checkstyle configuration that checks the sun coding conventions from:
212217 <!-- See https://checkstyle.org/config_coding.html -->
213218 <module name =" EmptyStatement" >
214219 <!-- BorderTech: Override to warning -->
215- <property name =" severity" value =" warning" />
220+ <property name =" severity" value =" warning" />
216221 </module >
217222 <module name =" EqualsHashCode" />
218223 <module name =" HiddenField" >
219224 <!-- BorderTech: Override from false for constructor parameters -->
220- <property name =" ignoreConstructorParameter" value = " true" />
225+ <property name =" ignoreConstructorParameter" value = " true" />
221226 <!-- BorderTech: Override from false for setter parameters -->
222- <property name =" ignoreSetter" value = " true" />
227+ <property name =" ignoreSetter" value = " true" />
223228 <!-- BorderTech: Override to warning -->
224- <property name =" severity" value =" warning" />
229+ <property name =" severity" value =" warning" />
225230 </module >
226231 <module name =" IllegalInstantiation" />
227232 <module name =" InnerAssignment" />
228233 <module name =" MagicNumber" >
229234 <!-- BorderTech: Override from false for hash code methods -->
230- <property name =" ignoreHashCodeMethod" value = " true" />
235+ <property name =" ignoreHashCodeMethod" value = " true" />
231236 <!-- BorderTech: Override from false for annotation methods -->
232- <property name =" ignoreAnnotation" value = " true" />
237+ <property name =" ignoreAnnotation" value = " true" />
233238 <!-- BorderTech: Override to warning -->
234- <property name =" severity" value =" warning" />
239+ <property name =" severity" value =" warning" />
235240 </module >
236241 <module name =" MissingSwitchDefault" >
237242 <!-- BorderTech: Override to warning -->
238- <property name =" severity" value =" warning" />
243+ <property name =" severity" value =" warning" />
239244 </module >
240245 <module name =" MultipleVariableDeclarations" />
241246 <module name =" SimplifyBooleanExpression" />
@@ -259,14 +264,14 @@ Checkstyle configuration that checks the sun coding conventions from:
259264 <module name =" FinalParameters" />
260265 <module name =" TodoComment" >
261266 <!-- BorderTech: Override to warning -->
262- <property name =" severity" value =" warning" />
267+ <property name =" severity" value =" warning" />
263268 </module >
264269 <module name =" UpperEll" />
265270
266271 <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
267272 <module name =" SuppressionXpathFilter" >
268273 <property name =" file" value =" ${org.checkstyle.sun.suppressionxpathfilter.config}"
269- default =" checkstyle-xpath-suppressions.xml" />
274+ default =" checkstyle-xpath-suppressions.xml" />
270275 <property name =" optional" value =" true" />
271276 </module >
272277
0 commit comments