From a02c329f8d6fba839c7f3472a20073b8cf485269 Mon Sep 17 00:00:00 2001
From: brinxmat <789709+brinxmat@users.noreply.github.com>
Date: Thu, 26 Sep 2024 07:47:15 +0200
Subject: [PATCH] Bump PMD with fixes
---
build.gradle | 2 +-
config/pmd/ruleset.xml | 12 ++------
src/main/java/no/sikt/generator/ApiData.java | 30 +++++++++++--------
.../sikt/generator/ApplicationConstants.java | 5 +++-
.../no/sikt/generator/OpenApiCombiner.java | 5 ++--
.../no/sikt/generator/OpenApiExtractor.java | 3 +-
.../java/no/sikt/generator/OpenApiUtils.java | 16 +++++-----
.../handlers/GenerateDocsHandler.java | 17 ++++++-----
.../handlers/GenerateExternalDocsHandler.java | 5 ++--
.../handlers/GenerateInternalDocsHandler.java | 5 ++--
.../PublishDocumentationsHandler.java | 7 +++--
.../GenerateInternalDocsHandlerTest.java | 3 +-
.../no/sikt/generator/handlers/TestUtils.java | 7 +++--
13 files changed, 62 insertions(+), 55 deletions(-)
diff --git a/build.gradle b/build.gradle
index 1c97d28..116ef32 100644
--- a/build.gradle
+++ b/build.gradle
@@ -98,7 +98,7 @@ tasks.named('test') {
}
pmd {
- toolVersion = '6.20.0'
+ toolVersion = '7.5.0'
ruleSetConfig = rootProject.resources.text.fromFile('config/pmd/ruleset.xml')
ruleSets = []
ignoreFailures = false
diff --git a/config/pmd/ruleset.xml b/config/pmd/ruleset.xml
index 8ecf4b7..f6924aa 100644
--- a/config/pmd/ruleset.xml
+++ b/config/pmd/ruleset.xml
@@ -10,13 +10,11 @@
.*/test/.*
-
-
-
+
@@ -42,12 +40,8 @@
-
-
-
-
-
-
+
+