Skip to content

Commit 6c6266d

Browse files
authored
Use spotbugs plugin 4.8.2.0 with new exclusions (jenkinsci#1085)
Preparing for future upgrade of the plugin parent pom
1 parent 75743d5 commit 6c6266d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<jenkins.version>2.401.3</jenkins.version>
6868
<jgit.version>6.8.0.202311291450-r</jgit.version>
6969
<spotbugs.effort>Max</spotbugs.effort>
70+
<spotbugs-maven-plugin.version>4.8.2.0</spotbugs-maven-plugin.version>
7071
<spotbugs.threshold>Low</spotbugs.threshold>
7172
<spotless.check.skip>false</spotless.check.skip>
7273
</properties>

src/spotbugs/excludesFilter.xml

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44
Exclusions in this section have been triaged and determined to be
55
false positives.
66
-->
7+
<Match>
8+
<!-- Jenkins plugins generally not vulnerable to Finalizer attacks -->
9+
<Bug pattern="CT_CONSTRUCTOR_THROW" />
10+
<Or>
11+
<Class name="hudson.plugins.git.GitAPI" />
12+
<Class name="org.jenkinsci.plugins.gitclient.JGitAPIImpl$FileRepositoryImpl" />
13+
<Class name="org.jenkinsci.plugins.gitclient.trilead.TrileadSession$ProcessImpl" />
14+
</Or>
15+
</Match>
16+
<Match>
17+
<!-- These primitive attributes need to be public to preserve the API -->
18+
<Bug pattern="PA_PUBLIC_PRIMITIVE_ATTRIBUTE" />
19+
<Class name="hudson.plugins.git.Tag" />
20+
<Or>
21+
<Field name="commitMessage" />
22+
<Field name="commitSHA1" />
23+
</Or>
24+
</Match>
725
<Match>
826
<!-- intentional and accepted that it is not restored -->
927
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />

0 commit comments

Comments
 (0)