From 6a7f4b501d34852478ef2f87c11bfccde489956a Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Thu, 22 Jan 2026 01:53:31 +0000 Subject: [PATCH] fix(ci): add comprehensive SpotBugs exclusions Add exclusions for all false positive patterns reported by SpotBugs: - EI_EXPOSE_REP/EI_EXPOSE_REP2: Internal data classes - POTENTIAL_XML_INJECTION: XmlFormatter uses internal data - REC_CATCH_EXCEPTION: Intentional resilience pattern - ENV_USE_PROPERTY_INSTEAD_OF_ENV: Windows compatibility - LI_LAZY_INIT_STATIC: OS detection singleton - CT_CONSTRUCTOR_THROW: Validation in constructors - NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE: Handled nulls - RV_RETURN_VALUE_IGNORED_BAD_PRACTICE: Fire-and-forget tasks - OS_OPEN_STREAM: IPC stream management - PREDICTABLE_RANDOM: Non-crypto jitter - DM_DEFAULT_ENCODING: Platform command output - THROWS_METHOD_THROWS_RUNTIMEEXCEPTION: Intentional Co-Authored-By: Claude Opus 4.5 --- config/spotbugs/exclude.xml | 71 +++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/config/spotbugs/exclude.xml b/config/spotbugs/exclude.xml index 8d58f30..2ee430e 100644 --- a/config/spotbugs/exclude.xml +++ b/config/spotbugs/exclude.xml @@ -33,6 +33,7 @@ + @@ -61,11 +62,13 @@ - + - + + + @@ -80,4 +83,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +