From: sourabh_sourabh Date: Tue, 22 Oct 2024 13:00:29 +0000 (+0100) Subject: Added maven-checkstyle-plugin to parent POM for code style checks X-Git-Tag: 1.6.0~20 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1e1f49f7947271b15fa9b096a022e827d952a043;p=cps%2Fncmp-dmi-plugin.git Added maven-checkstyle-plugin to parent POM for code style checks - Integrate Checkstyle to enforce coding standards across modules. - Ensure Checkstyle applies to both dmi-service and dmi-stub modules. - Fixed all code check style issues. Issue-ID: CPS-2461 Change-Id: Ie84928c1f2e3de549cc8fab2001974369884a831 Signed-off-by: sourabh_sourabh --- diff --git a/dmi-service/pom.xml b/dmi-service/pom.xml index 7b2c54c1..fccdfaad 100644 --- a/dmi-service/pom.xml +++ b/dmi-service/pom.xml @@ -1,4 +1,21 @@ + + @@ -14,7 +31,6 @@ org.onap.cps.ncmp.dmi.Application ${docker.pull.registry}/onap/integration-java17:12.0.0 - 3.5.2 ${project.version}-${maven.build.timestamp} 0.98 yyyyMMdd'T'HHmmss'Z' @@ -426,76 +442,6 @@ - - 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 - - check - - process-sources - - onap-checkstyle/onap-java-style.xml - - ${project.build.sourceDirectory} - - true - true - true - false - warning - true - - - - cps-java-style - - check - - process-sources - - cps-java-style.xml - - ${project.build.sourceDirectory} - - true - true - true - true - warning - true - - - - - - ${project.groupId} - checkstyle - ${cps.version} - - - com.github.spotbugs spotbugs-maven-plugin diff --git a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/pom.xml b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/pom.xml index e8d88ddd..3bb8324b 100644 --- a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/pom.xml +++ b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/pom.xml @@ -1,3 +1,4 @@ + + @@ -43,4 +45,84 @@ ncmp-dmi-plugin DMI Plugin Service + + 3.5.2 + + + + + + + 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 + + check + + process-sources + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + + true + true + true + false + warning + true + + + + cps-java-style + + check + + process-sources + + cps-java-style.xml + + ${project.build.sourceDirectory} + + true + true + true + true + warning + true + + + + + + ${project.groupId} + checkstyle + ${cps.version} + + + + + +