OSDN Git Service

move checkstyle & pmd configs.
authorOlyutorskii <olyutorskii@users.osdn.me>
Sun, 2 Jun 2019 00:47:38 +0000 (09:47 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Sun, 2 Jun 2019 00:47:38 +0000 (09:47 +0900)
config/checkstyle/checkstyle-suppressions.xml [moved from src/main/config/suppressions.xml with 100% similarity]
config/checkstyle/checkstyle.xml [moved from src/main/config/checks.xml with 99% similarity]
config/pmd/pmdrules.xml [moved from src/main/config/pmdrules.xml with 100% similarity]
pom.xml

similarity index 99%
rename from src/main/config/checks.xml
rename to config/checkstyle/checkstyle.xml
index 3e31cbb..70d8cb3 100644 (file)
@@ -26,7 +26,7 @@
     <!-- Filters -->
     <module name="SeverityMatchFilter" />
     <module name="SuppressionFilter">
-        <property name="file" value="src/main/config/suppressions.xml" />
+        <property name="file" value="config/checkstyle/checkstyle-suppressions.xml" />
     </module>
     <module name="SuppressionCommentFilter" />
     <module name="SuppressWithNearbyCommentFilter" />
diff --git a/pom.xml b/pom.xml
index e971359..8c638ea 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -96,7 +96,8 @@
         
         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
 
-        <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
+        <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
+        <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
         <checkstyle.enable.rss>false</checkstyle.enable.rss>
 
     </properties>
                 <artifactId>maven-pmd-plugin</artifactId>
                 <version>3.0.1</version>
                 <configuration>
-                    <targetJdk>${maven.compiler.target}</targetJdk>
+                    <!--targetJdk>${maven.compiler.target}</targetJdk-->
+                    <targetJdk>1.6</targetJdk>
                     <rulesets>
-                        <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
+                        <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
                     </rulesets>
                 </configuration>
             </plugin>
                 <version>3.0.1</version>
                 <configuration>
                     <skip>false</skip>
-                    <targetJdk>${maven.compiler.target}</targetJdk>
+                    <!--targetJdk>${maven.compiler.target}</targetJdk-->
+                    <targetJdk>1.6</targetJdk>
                     <rulesets>
-                        <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
+                        <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
                     </rulesets>
                 </configuration>
                 <reportSets>