From be6b50c1687a543a8a864dd72b05065fde34141d Mon Sep 17 00:00:00 2001 From: vishesh92 Date: Fri, 15 May 2026 17:20:27 +0530 Subject: [PATCH] Update pmd config to make it pmd 7 compatible --- .github/linters/codespell.txt | 1 + .../src/main/resources/cloud-pmd.xml | 117 +++++++++++------- 2 files changed, 74 insertions(+), 44 deletions(-) diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt index 37b3e6de1cbe..8b05c4ef621f 100644 --- a/.github/linters/codespell.txt +++ b/.github/linters/codespell.txt @@ -188,6 +188,7 @@ environmnet equivalant erro erronous +errorprone everthing everytime excetion diff --git a/tools/checkstyle/src/main/resources/cloud-pmd.xml b/tools/checkstyle/src/main/resources/cloud-pmd.xml index 78d394ea15eb..625ee14d51c3 100644 --- a/tools/checkstyle/src/main/resources/cloud-pmd.xml +++ b/tools/checkstyle/src/main/resources/cloud-pmd.xml @@ -23,59 +23,88 @@ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"> - Ruleset that brings all the rulesets we want from the pmd jar, because - the maven-pmd-plugin doesn't find them otherwise. This is also the place - to add our own future rulesets, if any. + CloudStack PMD ruleset. Enables all PMD 7 categories with + project-specific exclusions for rules that are too noisy + or incompatible with CloudStack conventions. - - - - - - - - + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + - + + + + + + + + + - - + + + + + - - - - - - - - - + + + + + - - - - + + + + - - - - - - - + +