# HG changeset patch # User Miloslav Zezulka # Date 1507544962 -7200 # Node ID b7ec1ed8117bbd9a1067270dc9c282065d9cec23 # Parent 52ee8129e08b5268fe4478d7259779afb2642964 Setup maven-pmd-plugin for automated static code analysis Reviewed-by: jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025332.html diff -r 52ee8129e08b -r b7ec1ed8117b build-tools/pom.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build-tools/pom.xml Mon Oct 09 12:29:22 2017 +0200 @@ -0,0 +1,45 @@ + + + + 4.0.0 + com.redhat.thermostat + 1.0 + build-tools + Thermostat Build Tools + \ No newline at end of file diff -r 52ee8129e08b -r b7ec1ed8117b build-tools/src/main/resources/rulesets/pmdRulesets.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build-tools/src/main/resources/rulesets/pmdRulesets.xml Mon Oct 09 12:29:22 2017 +0200 @@ -0,0 +1,49 @@ + + + + + + Ruleset definition for Thermostat-ng web-gateway module. + + + + \ No newline at end of file diff -r 52ee8129e08b -r b7ec1ed8117b common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/ThermostatMongoStorage.java --- a/common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/ThermostatMongoStorage.java Mon Oct 09 15:05:27 2017 +0200 +++ b/common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/ThermostatMongoStorage.java Mon Oct 09 12:29:22 2017 +0200 @@ -33,6 +33,7 @@ * library, but you are not obligated to do so. If you do not wish * to do so, delete this exception statement from your version. */ + package com.redhat.thermostat.gateway.common.mongodb; import java.net.URI; diff -r 52ee8129e08b -r b7ec1ed8117b pom.xml --- a/pom.xml Mon Oct 09 15:05:27 2017 +0200 +++ b/pom.xml Mon Oct 09 12:29:22 2017 +0200 @@ -56,6 +56,7 @@ services ide-launcher tests + build-tools @@ -85,6 +86,10 @@ true + + 3.8 + rulesets/pmdRulesets.xml + 2.3 @@ -139,6 +144,37 @@ + org.apache.maven.plugins + maven-pmd-plugin + ${pmd.plugin.version} + + ${maven.test.skip} + + ${pmd.rules.path} + + xml + false + true + true + true + + + + + check + + integration-test + + + + + com.redhat.thermostat + build-tools + 1.0 + + + + com.mycila license-maven-plugin 2.6 @@ -180,4 +216,25 @@ + + + + + org.apache.maven.plugins + maven-jxr-plugin + ${jxr.version} + + + org.apache.maven.plugins + maven-pmd-plugin + ${pmd.plugin.version} + + true + + ${pmd.rules.path} + + + + +