• R/O
  • HTTP
  • SSH
  • HTTPS

Jindolf: 提交

Jindolfプロジェクトは、CGIゲーム「人狼BBS」を快適にプレイするための専用クライアントを製作するために発足したオープンソースプロジェクトです。


Commit MetaInfo

修订版5c0fb74910ac413d9c78b42434c89d3e798989b9 (tree)
时间2020-02-12 15:16:06
作者Olyutorskii <olyutorskii@user...>
CommiterOlyutorskii

Log Message

update checkstyle plugin.

更改概述

差异

--- a/config/checkstyle/checkstyle-suppressions.xml
+++ b/config/checkstyle/checkstyle-suppressions.xml
@@ -6,7 +6,7 @@
66
77 <!--
88 Checkstyle suppressions
9- for Checkstyle 8.20 or later
9+ for Checkstyle 8.29 or later
1010
1111 [ https://checkstyle.org/ ]
1212
@@ -25,10 +25,12 @@
2525 <suppress files="" checks="DesignForExtension" />
2626
2727 <!-- Coding -->
28+ <suppress files="" checks="AvoidNoArgumentSuperConstructorCall" />
2829 <suppress files="" checks="ExplicitInitialization" />
2930 <suppress files="" checks="FinalLocalVariable" />
3031 <suppress files="" checks="MagicNumber" />
31- <suppress files="" checks="OneStatementPerLine" />
32+ <suppress files="" checks="NoArrayTrailingComma" />
33+ <suppress files="" checks="NoEnumTrailingComma" />
3234
3335 <!-- Imports -->
3436 <suppress files="" checks="ImportControl" />
@@ -40,8 +42,9 @@
4042 <suppress files="" checks="FinalParameters" />
4143 <suppress files="" checks="TrailingComment" />
4244
43- <!-- Modifiers -->
45+ <!-- Modifier -->
4446 <suppress files="" checks="InterfaceMemberImpliedModifier" />
47+ <suppress files="" checks="RedundantModifier" />
4548
4649 <!-- Whitespace -->
4750 <suppress files="" checks="SingleSpaceSeparator" />
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -6,7 +6,7 @@
66
77 <!--
88 Checkstyle modules
9- for Checkstyle 8.20 or later
9+ for Checkstyle 8.29 or later
1010
1111 [ https://checkstyle.org/ ]
1212
@@ -20,18 +20,21 @@
2020 <property name="localeCountry" value="JP" />
2121 <property name="localeLanguage" value="en" />
2222 <!--property name="localeLanguage" value="ja" /-->
23- <property name="fileExtensions" value="java, xml, properties" />
23+ <property name="fileExtensions" value="java, properties, xml, xsd, md, txt" />
2424 <property name="severity" value="error" />
2525
2626
2727 <!-- Filters -->
28+
2829 <module name="SeverityMatchFilter" />
2930 <!--module name="SuppressionFilter" /-->
31+ <!--module name="SuppressionSingleFilter" /-->
3032 <module name="SuppressWarningsFilter" />
3133 <module name="SuppressWithPlainTextCommentFilter" />
3234
3335
3436 <!-- Headers -->
37+
3538 <module name="Header">
3639 <property name="header" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;" />
3740 <property name="fileExtensions" value="xml" />
@@ -44,18 +47,22 @@
4447
4548
4649 <!-- Javadoc Comments -->
50+
4751 <module name="JavadocPackage" />
4852
4953
5054 <!-- Miscellaneous -->
55+
5156 <module name="NewlineAtEndOfFile">
52- <property name="fileExtensions" value="java" />
57+ <property name="fileExtensions" value="java, properties, xml, xsd, md, txt" />
5358 </module>
59+ <module name="OrderedProperties" />
5460 <module name="Translation" />
5561 <module name="UniqueProperties" />
5662
5763
5864 <!-- Regexp -->
65+
5966 <module name="RegexpMultiline">
6067 <property name="format" value="[\u000b\f\u001a]" />
6168 </module>
@@ -70,10 +77,16 @@
7077
7178
7279 <!-- Size Violations -->
80+
7381 <module name="FileLength" />
82+ <module name="LineLength">
83+ <property name="fileExtensions" value="java" />
84+ <property name="max" value="78" />
85+ </module>
7486
7587
7688 <!-- Whitespace -->
89+
7790 <module name="FileTabCharacter" />
7891
7992
@@ -139,6 +152,7 @@
139152
140153 <module name="ArrayTrailingComma" />
141154 <module name="AvoidInlineConditionals" />
155+ <module name="AvoidNoArgumentSuperConstructorCall" />
142156 <module name="CovariantEquals" />
143157 <module name="DeclarationOrder" />
144158 <module name="DefaultComesLast" />
@@ -172,7 +186,9 @@
172186 <module name="NestedForDepth" />
173187 <module name="NestedIfDepth" />
174188 <module name="NestedTryDepth" />
189+ <module name="NoArrayTrailingComma" />
175190 <module name="NoClone" />
191+ <module name="NoEnumTrailingComma" />
176192 <module name="NoFinalizer" />
177193 <module name="OneStatementPerLine" />
178194 <module name="OverloadMethodsDeclarationOrder" />
@@ -191,6 +207,9 @@
191207 <module name="SuperClone" />
192208 <module name="SuperFinalize" />
193209 <module name="UnnecessaryParentheses" />
210+ <module name="UnnecessarySemicolonAfterTypeMemberDeclaration" />
211+ <module name="UnnecessarySemicolonInEnumeration" />
212+ <module name="UnnecessarySemicolonInTryWithResources" />
194213 <module name="VariableDeclarationUsageDistance" />
195214
196215
@@ -209,6 +228,9 @@
209228 <!-- Javadoc Comments -->
210229
211230 <module name="AtclauseOrder" />
231+ <module name="InvalidJavadocPosition" />
232+ <module name="JavadocBlockTagLocation" />
233+ <module name="JavadocContentLocationCheck" />
212234 <module name="JavadocMethod" />
213235 <module name="JavadocParagraph" />
214236 <module name="JavadocStyle">
@@ -223,6 +245,9 @@
223245 <module name="JavadocVariable">
224246 <property name="scope" value="protected" />
225247 </module>
248+ <module name="MissingJavadocMethod" />
249+ <module name="MissingJavadocPackage" />
250+ <module name="MissingJavadocType" />
226251 <module name="NonEmptyAtclauseDescription" />
227252 <module name="SingleLineJavadoc" />
228253 <module name="SummaryJavadocCheck" />
@@ -313,9 +338,6 @@
313338
314339 <module name="AnonInnerLength" />
315340 <module name="ExecutableStatementCount" />
316- <module name="LineLength">
317- <property name="max" value="78" />
318- </module>
319341 <module name="MethodCount" />
320342 <module name="MethodLength" />
321343 <module name="OuterTypeNumber" />
--- a/pom.xml
+++ b/pom.xml
@@ -248,12 +248,12 @@
248248 <plugin>
249249 <groupId>org.apache.maven.plugins</groupId>
250250 <artifactId>maven-checkstyle-plugin</artifactId>
251- <version>3.0.0</version>
251+ <version>3.1.0</version>
252252 <dependencies>
253253 <dependency>
254254 <groupId>com.puppycrawl.tools</groupId>
255255 <artifactId>checkstyle</artifactId>
256- <version>8.20</version>
256+ <version>8.29</version>
257257 </dependency>
258258 </dependencies>
259259 </plugin>
Show on old repository browser