From bffa2ba0cc25cd77196245399a5fbf658575b334 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Wed, 9 Oct 2024 05:49:06 -0600 Subject: [PATCH] Suppress spotbugs PA_PUBLIC_PRIMITIVE_ATTRIBUTE warnings https://www.jenkins.io/doc/developer/tutorial-improve/add-more-spotbugs-checks/ describes the technique used here with an exclusions file. The specific exclusion for PA_PUBLIC_PRIMITIVE_ATTRIBUTE has been confirmed by Jenkins developers that it is not helpful in a Jenkins plugin. https://github.com/jenkinsci/jenkins/pull/8803 describes the changes that were made in Jenkins core and in many Jenkins plugins to suppress the PA_PUBLIC_PRIMITIVE_ATTRIBUTE spotbugs warning. --- src/spotbugs/excludesFilter.xml | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/spotbugs/excludesFilter.xml diff --git a/src/spotbugs/excludesFilter.xml b/src/spotbugs/excludesFilter.xml new file mode 100644 index 00000000..5d21a4da --- /dev/null +++ b/src/spotbugs/excludesFilter.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +