From 232cce44e9786ec8de4a303db8d512abbd8fc5af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 03:25:32 +0000 Subject: [PATCH 1/4] Bump edu.hm.hafner:codingstyle from 3.42.0 to 4.5.0 Bumps [edu.hm.hafner:codingstyle](https://github.com/uhafner/codingstyle) from 3.42.0 to 4.5.0. - [Release notes](https://github.com/uhafner/codingstyle/releases) - [Changelog](https://github.com/uhafner/codingstyle/blob/main/CHANGELOG.md) - [Commits](https://github.com/uhafner/codingstyle/compare/v3.42.0...v4.5.0) --- updated-dependencies: - dependency-name: edu.hm.hafner:codingstyle dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a26fb6a4..e4f6b1e8 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ 2.426 ${jenkins.baseline}.3 false - 3.42.0 + 4.5.0 20.11.0 From 1d3d4c742098aefc5a21c9d6d107765857879cb4 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Mon, 22 Apr 2024 22:12:41 +0200 Subject: [PATCH 2/4] Use new test/production rules for CheckStyle and PMD. --- pom.xml | 141 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 107 insertions(+), 34 deletions(-) diff --git a/pom.xml b/pom.xml index e4f6b1e8..87c27c10 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ 4.8.4 - 6.55.0 + 7.0.0 3.3.1 10.15.0 3.21.2 @@ -331,20 +331,10 @@ org.apache.maven.plugins maven-checkstyle-plugin ${maven-checkstyle-plugin.version} - - - run-checkstyle - - checkstyle - - verify - - false - false - checkstyle-configuration.xml - true + true + false **/*Assert*.java,**/InjectedTest.java,**/Messages.java,**/*_jmh* @@ -360,38 +350,49 @@ config - - - org.apache.maven.plugins - maven-pmd-plugin - ${maven-pmd-plugin.version} - run-pmd + run-checkstyle-java - pmd - cpd + checkstyle + + verify + + **/module-info.java + false + checkstyle-java-configuration.xml + ${project.build.directory}/checkstyle-java/checkstyle-result.xml + + + + run-checkstyle-tests + + checkstyle verify + + **/*Assert*.java,**/*_jmh*,**/module-info.java + true + checkstyle-tests-configuration.xml + ${project.build.directory}/checkstyle-tests/checkstyle-result.xml + + + + org.apache.maven.plugins + maven-pmd-plugin + ${maven-pmd-plugin.version} false - - pmd-configuration.xml - - - target/generated-sources/localizer - target/generated-test-sources/test-annotations - target/generated-test-sources/assertj-assertions - - - **/InjectedTest.java - - true - 50 + false + + net.sourceforge.pmd + pmd-compat6 + ${pmd.version} + net.sourceforge.pmd pmd-core @@ -402,6 +403,16 @@ pmd-java ${pmd.version} + + net.sourceforge.pmd + pmd-javascript + ${pmd.version} + + + net.sourceforge.pmd + pmd-jsp + ${pmd.version} + edu.hm.hafner codingstyle @@ -409,6 +420,68 @@ config + + + run-pmd-java + + pmd + cpd + + verify + + ${project.build.directory}/pmd-java + + pmd-java-configuration.xml + + false + 50 + + + + run-pmd-tests + + pmd + cpd + + verify + + ${project.build.directory}/pmd-tests + + pmd-tests-configuration.xml + + true + 100 + + src/main/java + ${project.build.directory}/generated-test-sources/test-annotations + ${project.build.directory}/generated-test-sources/assertj-assertions + + + + + run-pmd-javascript + + pmd + + verify + + ${project.build.directory}/pmd-javascript + + pmd-javascript-configuration.xml + + false + javascript + + ${basedir}/src/main/resources + ${basedir}/src/main/webapp/js + + + **/*.js + + + + + com.github.spotbugs From 31b831b28c8bd408a2af0b2fefb2801fc6f00708 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Tue, 23 Apr 2024 12:13:56 +0200 Subject: [PATCH 3/4] Fix some `LooseCoupling` warnings. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 87c27c10..077dd3f2 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ 2.426 ${jenkins.baseline}.3 false - 4.5.0 + 4.6.0 20.11.0 From 06886635627810cfd7be13422ae02f329abd0b2b Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Tue, 23 Apr 2024 12:18:12 +0200 Subject: [PATCH 4/4] Bump version to 8.x to make clear that we have incompatible changes. Checkstyle und PMD plugins now produce files at different locations. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 077dd3f2..5fce12cc 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ analysis-pom pom Analysis Plug-ins Parent POM - 7.5.0-SNAPSHOT + 8.0.0-SNAPSHOT https://github.com/jenkinsci/analysis-pom-plugin This static analysis POM serves as parent POM for all my Jenkins Plugins. It basically enhances the