From 35b2b4414405c0c3f7c06171ae0e1ebca3214e40 Mon Sep 17 00:00:00 2001 From: Claudio David Gasparini Date: Tue, 1 Dec 2020 14:53:40 +0100 Subject: 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 --- checkstyle/pom.xml | 9 +++++ checkstyle/src/main/resources/cps-java-style.xml | 34 +++++++++++++++++ cps-bom/pom.xml | 5 +++ cps-parent/pom.xml | 47 +++++++++++++++++++++++- pom.xml | 1 + 5 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 checkstyle/pom.xml create mode 100644 checkstyle/src/main/resources/cps-java-style.xml diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml new file mode 100644 index 0000000000..c6b0d2479b --- /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 0000000000..ebb9a19e67 --- /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 5b0271a9e9..43ad05f9a0 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 99f60951fd..5aa65a25d8 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 bdb2e91bdc..e5c6df3365 100644 --- a/pom.xml +++ b/pom.xml @@ -33,5 +33,6 @@ cps-service cps-rest cps-ri + checkstyle -- cgit 1.2.3-korg