Skip to content

Commit d3158fd

Browse files
committed
fix: Exclude EI_EXPOSE_REP SpotBugs warnings globally
Add spotbugs-exclude.xml to globally exclude EI_EXPOSE_REP and EI_EXPOSE_REP2 warnings as these are typically false positives for data transfer objects and configuration classes.
1 parent 99fe25f commit d3158fd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@
407407
<plugin>
408408
<groupId>com.github.spotbugs</groupId>
409409
<artifactId>spotbugs-maven-plugin</artifactId>
410+
<configuration>
411+
<excludeFilterFile>${project.basedir}/spotbugs-exclude.xml</excludeFilterFile>
412+
</configuration>
410413
</plugin>
411414
<plugin>
412415
<groupId>org.apache.maven.plugins</groupId>

spotbugs-exclude.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter>
3+
<!-- Exclude EI_EXPOSE_REP and EI_EXPOSE_REP2 globally -->
4+
<Match>
5+
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
6+
</Match>
7+
</FindBugsFilter>

0 commit comments

Comments
 (0)