• R/O
  • HTTP
  • SSH
  • HTTPS

JinParser: 提交

JinParserライブラリは、CGIゲーム「人狼BBS」のクライアント制作者向けに作られたJavaライブラリです。


Commit MetaInfo

修訂43dbef67afda745ca04d229eca5ab52de9c30e7d (tree)
時間2019-05-06 22:30:39
作者Olyutorskii <olyutorskii@user...>
CommiterOlyutorskii

Log Message

update PMD plugin.

Change Summary

差異

--- a/config/pmd/pmdrules.xml
+++ b/config/pmd/pmdrules.xml
@@ -2,9 +2,9 @@
22
33 <!--
44 Custom rule set
5- for PMD [ https://pmd.github.io/ ] 6.0.1 or later
5+ for PMD [ https://pmd.github.io/ ] 6.13.0 or later
66
7- Copyright(c) 2016 olyutorskii
7+ Copyright(c) 2019 olyutorskii
88 -->
99
1010 <ruleset
@@ -32,6 +32,12 @@
3232 <exclude name="UnnecessaryLocalBeforeReturn" />
3333 <exclude name="UnnecessaryReturn" />
3434 </rule>
35+ <rule ref="category/java/codestyle.xml/ControlStatementBraces" >
36+ <properties>
37+ <property name="checkIfElseStmt" value="false"/>
38+ <property name="checkSingleIfStmt" value="false"/>
39+ </properties>
40+ </rule>
3541 <rule ref="category/java/codestyle.xml/LongVariable" >
3642 <properties>
3743 <property name="minimum" value="25"/>
@@ -44,6 +50,8 @@
4450 </rule>
4551
4652 <rule ref="category/java/design.xml" >
53+ <exclude name="AvoidThrowingNullPointerException" />
54+ <exclude name="AvoidUncheckedExceptionsInSignatures" />
4755 <exclude name="LawOfDemeter" />
4856 <exclude name="LoosePackageCoupling" />
4957 </rule>
@@ -78,6 +86,8 @@
7886 <exclude name="RedundantFieldInitializer" />
7987 </rule>
8088
89+ <rule ref="category/java/security.xml" />
90+
8191 <!--rule ref="category/pom/errorprone.xml" /-->
8292
8393 <!--rule ref="category/xml/errorprone.xml" /-->
--- a/pom.xml
+++ b/pom.xml
@@ -104,7 +104,7 @@
104104 <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
105105 <checkstyle.enable.rss>false</checkstyle.enable.rss>
106106
107- <pmd-plugin.version>3.9.0</pmd-plugin.version>
107+ <pmd-plugin.version>3.12.0</pmd-plugin.version>
108108 <pmd.analysisCache>true</pmd.analysisCache>
109109
110110 <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
@@ -382,6 +382,17 @@
382382 </plugin>
383383
384384 <plugin>
385+ <groupId>org.apache.maven.plugins</groupId>
386+ <artifactId>maven-pmd-plugin</artifactId>
387+ <version>${pmd-plugin.version}</version>
388+ <configuration>
389+ <rulesets>
390+ <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
391+ </rulesets>
392+ </configuration>
393+ </plugin>
394+
395+ <plugin>
385396 <groupId>com.github.spotbugs</groupId>
386397 <artifactId>spotbugs-maven-plugin</artifactId>
387398 <version>${spotbugs-plugin.version}</version>
Show on old repository browser