From: Claudio David Gasparini Date: Tue, 1 Dec 2020 13:53:40 +0000 (+0100) Subject: Introduce CPS-checkstyle X-Git-Tag: 0.0.1~96 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commitdiff_plain;h=35b2b4414405c0c3f7c06171ae0e1ebca3214e40 Introduce CPS-checkstyle new module will define our own java checkstyle. Which should extend any rule desired and not covered already by onap checkstyle Issue-ID: CPS-120 Signed-off-by: Claudio David Gasparini Change-Id: I956d28770e107658c1b631eb277cff56e13bcf80 --- diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml new file mode 100644 index 000000000..c6b0d2479 --- /dev/null +++ b/checkstyle/pom.xml @@ -0,0 +1,9 @@ + + + 4.0.0 + org.onap.cps + checkstyle + 0.0.1-SNAPSHOT + \ No newline at end of file diff --git a/checkstyle/src/main/resources/cps-java-style.xml b/checkstyle/src/main/resources/cps-java-style.xml new file mode 100644 index 000000000..ebb9a19e6 --- /dev/null +++ b/checkstyle/src/main/resources/cps-java-style.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/cps-bom/pom.xml b/cps-bom/pom.xml index 5b0271a9e..43ad05f9a 100644 --- a/cps-bom/pom.xml +++ b/cps-bom/pom.xml @@ -48,6 +48,11 @@ cps-ri ${project.version} + + org.onap.cps + checkstyle + ${project.version} + \ No newline at end of file diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 99f60951f..5aa65a25d 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -214,6 +214,25 @@ org.apache.maven.plugins maven-checkstyle-plugin + + onap-license + + check + + process-sources + + onap-checkstyle/check-license.xml + false + true + false + + ${project.build.sourceDirectory} + + false + warning + true + + onap-java-style @@ -222,7 +241,9 @@ process-sources onap-checkstyle/onap-java-style.xml - ${project.build.sourceDirectory} + + ${project.build.sourceDirectory} + true true true @@ -231,6 +252,25 @@ true + + cps-java-style + + check + + process-sources + + cps-java-style.xml + + ${project.build.sourceDirectory} + + true + true + true + true + warning + true + + @@ -238,6 +278,11 @@ checkstyle ${oparent.version} + + ${project.groupId} + checkstyle + ${project.version} + diff --git a/pom.xml b/pom.xml index bdb2e91bd..e5c6df336 100644 --- a/pom.xml +++ b/pom.xml @@ -33,5 +33,6 @@ cps-service cps-rest cps-ri + checkstyle