Run static analysis on Onboarding production code 55/20155/1
authorvempo <vitaliy.emporopulo@amdocs.com>
Mon, 23 Oct 2017 14:03:24 +0000 (17:03 +0300)
committervempo <vitaliy.emporopulo@amdocs.com>
Mon, 23 Oct 2017 14:14:35 +0000 (17:14 +0300)
Enable static analysis to run by default, and fail the
build if violations are found in the Onboarding code.
For now check only the production code and only for
high-severity issues (e.g. not closing files).

Change-Id: I2567eb8c704310109b01cb8b6e2a345522870e2b
Issue-ID: SDC-497
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
onboarding/pom.xml

index 0582c76..50f4649 100644 (file)
@@ -2,7 +2,6 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
-    <groupId>org.openecomp.sdc</groupId>
     <artifactId>sdc-onboarding</artifactId>
     <packaging>pom</packaging>
 
                 <artifactId>maven-jxr-plugin</artifactId>
                 <version>2.5</version>
                 <configuration>
-                    <skip>${skipSA}</skip>
+                    <skip>${pmd.skip}</skip>
                 </configuration>
                 <executions>
                     <execution>
                 <artifactId>maven-pmd-plugin</artifactId>
                 <version>3.8</version>
                 <configuration>
-                    <skip>${skipSA}</skip>
+                    <skip>${pmd.skip}</skip>
                     <aggregate>false</aggregate>
-                    <targetJdk>${maven.compiler.target}</targetJdk>
+                    <includeTests>${pmd.include.tests}</includeTests>
+                    <printFailingErrors>true</printFailingErrors>
                     <rulesets>
                         <ruleset>build-pmd-ruleset.xml</ruleset>
                     </rulesets>