From: Olyutorskii Date: Fri, 3 May 2019 08:26:17 +0000 (+0900) Subject: update checkstyle plugin. X-Git-Tag: release-1.101.104^2~1^2 X-Git-Url: http://git.osdn.net/view?p=jovsonz%2FJovsonz.git;a=commitdiff_plain;h=88829358dc86447e823fdbf58d796beb05e2388c;ds=sidebyside update checkstyle plugin. --- diff --git a/README.txt b/README.txt index e540ca5..323d0c2 100644 --- a/README.txt +++ b/README.txt @@ -48,13 +48,13 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ ./src/test/java/ JUnit 4.* 用のユニットテストコード。 -./src/main/config/ +./config/ 各種ビルド・構成管理に必要なファイル群。 -./src/main/config/checks.xml +./config/checkstyle/checkstyle.xml Checkstyle用configファイル。 -./src/main/config/pmdrules.xml +./config/pmd/pmdrules.xml PMD用ルール定義ファイル。 diff --git a/src/main/config/suppressions.xml b/config/checkstyle/checkstyle-suppressions.xml similarity index 54% rename from src/main/config/suppressions.xml rename to config/checkstyle/checkstyle-suppressions.xml index f1500fa..eb5b801 100644 --- a/src/main/config/suppressions.xml +++ b/config/checkstyle/checkstyle-suppressions.xml @@ -1,14 +1,14 @@ + "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" + "https://checkstyle.org/dtds/suppressions_1_2.dtd"> @@ -16,6 +16,9 @@ + + + @@ -23,20 +26,25 @@ + + - - - + + + + + + diff --git a/src/main/config/checks.xml b/config/checkstyle/checkstyle.xml similarity index 86% rename from src/main/config/checks.xml rename to config/checkstyle/checkstyle.xml index bad583f..d154a5d 100644 --- a/src/main/config/checks.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,15 +1,14 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> @@ -19,21 +18,24 @@ - + + + - - - - + - + + + + + @@ -57,7 +59,7 @@ - + @@ -77,14 +79,31 @@ + + + + + - + + + + + + + + + + + + + @@ -94,12 +113,13 @@ + - + - + @@ -135,6 +155,7 @@ + @@ -156,9 +177,6 @@ - - - @@ -191,7 +209,7 @@ - + @@ -234,14 +252,13 @@ - - - - + + + + - + - @@ -257,6 +274,8 @@ + + @@ -270,10 +289,11 @@ value="^Abstract.*$|^.*Factory$|^.*Builder$|^.*Adapter$" /> - + + @@ -398,8 +418,11 @@ + - + + + + diff --git a/pom.xml b/pom.xml index 7398bab..79c0e61 100644 --- a/pom.xml +++ b/pom.xml @@ -99,7 +99,10 @@ 3.0.0-M3 0.8.3 - ${project.mainconf}/checks.xml + 3.0.0 + 8.18 + ${project.basedir}/config/checkstyle/checkstyle.xml + ${project.basedir}/config/checkstyle/checkstyle-suppressions.xml false 3.12.0 @@ -131,7 +134,26 @@ - + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyleruntime.version} + + + + + + + @@ -342,8 +364,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.15 - + ${checkstyle-plugin.version} @@ -502,11 +523,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.15 - - false - - + ${checkstyle-plugin.version}