From 60b5d932ed23d3eb3a3529b34f0207b44350d549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dinis=20Ferreira?= Date: Thu, 7 May 2026 00:33:40 +0200 Subject: [PATCH] chore: exclude PMD InvalidLogMessageFormat (conflicts with SLF4J trailing-Throwable convention) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PMD's InvalidLogMessageFormat rule flags the SLF4J idiom `LOGGER.x("...{}...", arg, throwable)` as having an argument-count mismatch (1 placeholder vs 2 args). Per SLF4J's FAQ (https://www.slf4j.org/faq.html#paramException) this is the documented and intended way to log a parameterized message together with an exception — SLF4J trims the trailing Throwable, uses the remaining args for placeholders, and attaches the Throwable to the log event for stack-trace rendering. Co-Authored-By: Claude Opus 4.7 (1M context) --- ddk-configuration/pmd/ruleset.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/ddk-configuration/pmd/ruleset.xml b/ddk-configuration/pmd/ruleset.xml index 3c4f305fb..fc62d9bcb 100644 --- a/ddk-configuration/pmd/ruleset.xml +++ b/ddk-configuration/pmd/ruleset.xml @@ -30,6 +30,7 @@ +