Skip to content

Commit

Permalink
Merge pull request #278 from jmMeessen/suppress-spotbug-warnings
Browse files Browse the repository at this point in the history
Suppress spotbugs errors
  • Loading branch information
MarkEWaite authored Aug 25, 2022
2 parents c1adf43 + 7f12b31 commit f44fff1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
<java.level>8</java.level>
<jenkins.version>2.332.1</jenkins.version>
<spotbugs.failOnError>false</spotbugs.failOnError>
<spotbugs.excludeFilterFile>suppressed-spotbug-errors.xml</spotbugs.excludeFilterFile>
</properties>
</project>
39 changes: 39 additions & 0 deletions suppressed-spotbug-errors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
see https://spotbugs.readthedocs.io/en/stable/filter.html#source
and https://stackoverflow.com/questions/52336795/spotbugs-maven-plugin-exclude-a-directory
for an explanation of the technique
-->
<FindBugsFilter>
<!-- <Match>
<Source name="~.*BlockableBuildTriggerConfig\.java"/>
</Match> -->
<Match>
<Or>
<And>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<Class name="hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig"/>
</And>
<And>
<Bug pattern="UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD"/>
<Class name="hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig"/>
</And>
<And>
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
<Class name="hudson.plugins.parameterizedtrigger.Plugin"/>
</And>
<And>
<Bug pattern="UUF_UNUSED_FIELD"/>
<Class name="hudson.plugins.parameterizedtrigger.FileBuildTriggerConfig"/>
</And>
<And>
<Bug pattern="UUF_UNUSED_FIELD"/>
<Class name="hudson.plugins.parameterizedtrigger.PredefinedPropertiesBuildTriggerConfig"/>
</And>
<And>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<Class name="hudson.plugins.parameterizedtrigger.NodeParameters"/>
</And>
</Or>
</Match>
</FindBugsFilter>

0 comments on commit f44fff1

Please sign in to comment.