Skip to content

Commit

Permalink
Merge pull request #138 from jmMeessen/suppress-spotbugs-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 d141832 + 5b9159b commit 11b5e46
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<gitHubRepo>jenkinsci/configurationslicing-plugin</gitHubRepo>
<findbugs.failOnError>false</findbugs.failOnError>
<spotbugs.failOnError>false</spotbugs.failOnError>
<spotbugs.excludeFilterFile>suppressed-spotbug-errors.xml</spotbugs.excludeFilterFile>
<java.level>8</java.level>
<jenkins.version>2.289.3</jenkins.version>
</properties>
Expand Down
68 changes: 68 additions & 0 deletions suppressed-spotbug-errors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?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>
<Or>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.BooleanSlicer]"/>
</And>
<And>
<Bug pattern="UWF_UNWRITTEN_FIELD"/>
<Class name="configurationslicing.ConfigurationSlicing$SliceExecutor"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.UnorderedStringSlicer"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.executeshell.ExecuteJythonSlicerWrapper"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.executeshell.ExecutePythonSlicerWrapper"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.tools.GroovySlicerWrapper"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.tools.GradleSlicerWrapper"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.prioritysorter.PrioritySorterSlicerWrapper"/>
</And>
<And>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="configurationslicing.parameters.ParametersSlicer$ParametersSliceSpec"/>
</And>
<And>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<Class name="configurationslicing.parameters.ParametersSlicer$ParametersSliceSpec"/>
</And>
<And>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<Class name="configurationslicing.logstash.LogStashSlicer$LogstashSpec"/>
</And>
<And>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Class name="configurationslicing.BooleanSlicer"/>
</And>
<And>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<Class name="configurationslicing.executeshell.ExecutePythonSlicer$ExecutePythonSliceSpec"/>
</And>
<And>
<Bug pattern="NP_NULL_ON_SOME_PATH"/>
<Class name="configurationslicing.logfilesizechecker.LogfilesizecheckerSlicer$LogfilesizeSliceSpec"/>
</And>
</Or>
</Match>
</FindBugsFilter>

0 comments on commit 11b5e46

Please sign in to comment.