Skip to content

Commit f16f6fa

Browse files
committed
spotbugs
1 parent d0958e3 commit f16f6fa

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,29 @@
278278
</execution>
279279
</executions>
280280
</plugin>
281+
<plugin>
282+
<groupId>com.github.spotbugs</groupId>
283+
<artifactId>spotbugs-maven-plugin</artifactId>
284+
<version>4.7.1.1</version>
285+
<configuration>
286+
<excludeFilterFile>spotbugs/spotbugs-exclude.xml</excludeFilterFile>
287+
</configuration>
288+
<executions>
289+
<execution>
290+
<phase>compile</phase>
291+
<goals>
292+
<goal>check</goal>
293+
</goals>
294+
</execution>
295+
</executions>
296+
<dependencies>
297+
<dependency>
298+
<groupId>com.github.spotbugs</groupId>
299+
<artifactId>spotbugs</artifactId>
300+
<version>4.7.1</version>
301+
</dependency>
302+
</dependencies>
303+
</plugin>
281304
</plugins>
282305
</build>
283306

spotbugs/spotbugs-exclude.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- This file specifies a spotbugs filter for excluding reports that
3+
should not be considered errors.
4+
The format of this file is documented at:
5+
https://spotbugs.readthedocs.io/en/latest/filter.html
6+
When possible, please specify the full names of the bug codes,
7+
using the pattern attribute, to make it clearer what reports are
8+
being suppressed. You can find a listing of codes at:
9+
https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html
10+
-->
11+
12+
<FindBugsFilter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13+
xmlns="https://github.com/spotbugs/filter/3.0.0"
14+
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/release-3.1/spotbugs/etc/findbugsfilter.xsd">
15+
16+
<Match>
17+
<Package name="~.*velocystream.*"/>
18+
</Match>
19+
20+
<Match>
21+
<Bug pattern="EI_EXPOSE_REP"/>
22+
</Match>
23+
24+
<Match>
25+
<Bug pattern="EI_EXPOSE_REP2"/>
26+
</Match>
27+
28+
<Match>
29+
<Bug pattern="UWF_UNWRITTEN_FIELD"/>
30+
</Match>
31+
32+
</FindBugsFilter>

0 commit comments

Comments
 (0)