Skip to content

Commit a025d50

Browse files
committed
Update Checkstyle rules for new versions of Checkstyle
1 parent 0b2d7b3 commit a025d50

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

checkstyle.xml

+13-7
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
-->
1111
<module name="Checker">
1212
<property name="severity" value="warning"/>
13+
<module name="SuppressWithPlainTextCommentFilter">
14+
<property name="offCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+OFF\b"/>
15+
<property name="onCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+ON\b"/>
16+
<property name="checkFormat" value="$1"/>
17+
</module>
1318
<module name="TreeWalker">
1419
<property name="tabWidth" value="4"/>
15-
<module name="JavadocMethod">
16-
<property name="allowThrowsTagsForSubclasses" value="true"/>
17-
<property name="allowUndeclaredRTE" value="true"/>
18-
</module>
20+
<module name="JavadocMethod"/>
1921
<module name="JavadocType">
2022
<property name="allowUnknownTags" value="true"/>
2123
</module>
@@ -36,9 +38,6 @@
3638
<module name="IllegalImport"/>
3739
<module name="RedundantImport"/>
3840
<module name="UnusedImports"/>
39-
<module name="LineLength">
40-
<property name="max" value="120"/>
41-
</module>
4241
<module name="MethodLength">
4342
<property name="max" value="70"/>
4443
</module>
@@ -104,6 +103,10 @@
104103
<property name="onCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+ON\b"/>
105104
<property name="checkFormat" value="$1"/>
106105
</module>
106+
<module name="MissingJavadocMethod"/>
107+
<module name="MissingJavadocPackage"/>
108+
<module name="MissingJavadocType"/>
109+
<module name="InvalidJavadocPosition"/>
107110
</module>
108111
<module name="FileTabCharacter"/>
109112
<module name="FileLength">
@@ -113,4 +116,7 @@
113116
<property name="header" value="^/\*$\n^ \* Licensed under the Apache License, Version 2\.0 \(the &quot;License&quot;\);$\n^ \* you may not use this file except in compliance with the License\.$\n^ \* You may obtain a copy of the License at$\n^ \*$\n^ \* http://www\.apache\.org/licenses/LICENSE-2\.0$\n^ \*$\n^ \* Unless required by applicable law or agreed to in writing, software$\n^ \* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,$\n^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$\n^ \* See the License for the specific language governing permissions and$\n^ \* limitations under the License\.$\n^ \*/$\n"/>
114117
</module>
115118
<module name="JavadocPackage"/>
119+
<module name="LineLength">
120+
<property name="max" value="120"/>
121+
</module>
116122
</module>

0 commit comments

Comments
 (0)