From c31f76c15ff13cadef49a1823be30ff7e4b819d3 Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Mon, 22 Jul 2024 17:33:17 +0100 Subject: [PATCH 1/5] Modified parent pom to include checkstyle and spotbugs plugin --- pom.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/pom.xml b/pom.xml index 929b355c6..2514982c6 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,10 @@ 3.1.0 3.0.1 1.6.13 + 3.2.0 + 10.17.0 + 4.8.6.2 + 4.8.6 @@ -352,6 +356,65 @@ ${test.src.dir} + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle-maven-plugin.version} + + + validate + + check + + + + + checkstyle.xml + true + UTF-8 + true + true + html + + + + com.puppycrawl.tools + checkstyle + ${checkstyle-dependency.version} + + + + + + com.github.spotbugs + spotbugs-maven-plugin + ${spotbugs-maven-plugin.version} + + + verify + + check + + + + + Max + Low + Max + true + false + + + + + com.github.spotbugs + spotbugs + ${spotbugs.version} + pom + + + org.apache.maven.plugins maven-compiler-plugin From e7e40fa030e0482e838ca3fbe0a02f9c767dd8dd Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Mon, 22 Jul 2024 17:35:41 +0100 Subject: [PATCH 2/5] added checkstyle file utilizing Google's java style --- checkstyle.xml | 380 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 380 insertions(+) create mode 100644 checkstyle.xml diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 000000000..b2e6fa633 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,380 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 6adc19b57593683579004ab59a62aa67fc607ce8 Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Wed, 24 Jul 2024 10:02:21 +0100 Subject: [PATCH 3/5] Modified Pom.xml --- pom.xml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 2514982c6..8f0ac7ca2 100644 --- a/pom.xml +++ b/pom.xml @@ -367,16 +367,17 @@ check + + checkstyle.xml + true + UTF-8 + true + true + false + ${project.basedir}/target/checkstyle-report.xml + - - checkstyle.xml - true - UTF-8 - true - true - html - com.puppycrawl.tools @@ -401,9 +402,11 @@ Max Low - Max true false + true + true + ${project.basedir}/target/ From ff57d3f0e6f1f3c091f3fb3317648c76978466aa Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Fri, 26 Jul 2024 11:12:20 +0100 Subject: [PATCH 4/5] Upgraded checkstyle vesion --- pom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8f0ac7ca2..15a08bbdd 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,7 @@ 3.1.0 3.0.1 1.6.13 - 3.2.0 + 3.4.0 10.17.0 4.8.6.2 4.8.6 @@ -372,8 +372,9 @@ true UTF-8 true - true + false false + org.checkstyle.google.severity=error ${project.basedir}/target/checkstyle-report.xml From 116c8396df6d2554110c987808ff94bf52886656 Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Fri, 26 Jul 2024 14:47:19 +0100 Subject: [PATCH 5/5] modified pom.xml file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 15a08bbdd..0b87ab326 100644 --- a/pom.xml +++ b/pom.xml @@ -374,7 +374,7 @@ true false false - org.checkstyle.google.severity=error + org.checkstyle.google.severity=warning ${project.basedir}/target/checkstyle-report.xml