Skip to content

Commit c8f6776

Browse files
committed
Added FindSecurityBugs configuration
1 parent 14ccb9f commit c8f6776

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

findbugs-security-exclude.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<FindBugsFilter>
2+
</FindBugsFilter>

findbugs-security-include.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<FindBugsFilter>
2+
<Match>
3+
<Bug category="SECURITY"/>
4+
</Match>
5+
</FindBugsFilter>

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,25 @@
230230
<artifactId>sonar-maven-plugin</artifactId>
231231
<version>3.0.1</version>
232232
</plugin>
233+
<plugin>
234+
<groupId>org.codehaus.mojo</groupId>
235+
<artifactId>findbugs-maven-plugin</artifactId>
236+
<version>3.0.1</version>
237+
<configuration>
238+
<effort>Max</effort>
239+
<threshold>Low</threshold>
240+
<failOnError>true</failOnError>
241+
<includeFilterFile>${session.executionRootDirectory}/findbugs-security-include.xml</includeFilterFile>
242+
<excludeFilterFile>${session.executionRootDirectory}/findbugs-security-exclude.xml</excludeFilterFile>
243+
<plugins>
244+
<plugin>
245+
<groupId>com.h3xstream.findsecbugs</groupId>
246+
<artifactId>findsecbugs-plugin</artifactId>
247+
<version>LATEST</version>
248+
</plugin>
249+
</plugins>
250+
</configuration>
251+
</plugin>
233252
</plugins>
234253
</pluginManagement>
235254
</build>

0 commit comments

Comments
 (0)