From 4bb64559deb6722069678aaa910f7379645d5a7b Mon Sep 17 00:00:00 2001
From: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Date: Sun, 28 Apr 2024 10:31:11 +0200
Subject: [PATCH] chore: configure SpotBugs (#5122)
---
.github/workflows/build.yml | 2 +
pom.xml | 9 +++
spotbugs-exclude.xml | 134 ++++++++++++++++++++++++++++++++++++
3 files changed, 145 insertions(+)
create mode 100644 spotbugs-exclude.xml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 49821b917..39a690f9a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -31,3 +31,5 @@ jobs:
fail_ci_if_error: true
- name: Checkstyle
run: mvn checkstyle:check
+ - name: SpotBugs
+ run: mvn spotbugs:check
diff --git a/pom.xml b/pom.xml
index 594a9acc3..b9c2e6488 100644
--- a/pom.xml
+++ b/pom.xml
@@ -114,6 +114,15 @@
+
+ com.github.spotbugs
+ spotbugs-maven-plugin
+ 4.8.4.0
+
+ spotbugs-exclude.xml
+ true
+
+
diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml
new file mode 100644
index 000000000..959773494
--- /dev/null
+++ b/spotbugs-exclude.xml
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+