Sorry, still using FindBugs, but we have a ticket in our backlog to upgrade to SpotBugs, and as far as I understand, configuration is the same and I only need to update groupId, artifactId and version.
I would like to use this report as a baseline, to prevent new Findbugs errors from creeping in, so I would like to convert this report to a excludeFilterFile.
run a build to generate target/findbugsXML.xml (already done)
run mvn findbugs:gui
load the findbugsXml.xml file
select the root node of the warnings (because I want all warnings)
save the exclusions to findbugs-filter.xml
When I do that, I get a findbugs-filter.xml file with the following content:
<FindBugsFilter></FindBugsFilter>
That's an empty filter file.
So what am I doing wrong here? What is the correct way to generate a filter file? I hope that I don't have to do it manually, because there are literally hundreds of warnings.
Sorry, still using FindBugs, but we have a ticket in our backlog to upgrade to SpotBugs, and as far as I understand, configuration is the same and I only need to update
groupId
,artifactId
andversion
.This is a piece from my
pom.xml
:I run the following command:
This generates a file
target/findbugsXML.xml
which containsBugInstances
that look like this:I would like to use this report as a baseline, to prevent new Findbugs errors from creeping in, so I would like to convert this report to a
excludeFilterFile
.For the snippet above, the syntax should become:
According to this Stack Overflow answer, what I should do, is:
target/findbugsXML.xml
(already done)mvn findbugs:gui
findbugsXml.xml
filefindbugs-filter.xml
When I do that, I get a
findbugs-filter.xml
file with the following content:That's an empty filter file.
So what am I doing wrong here? What is the correct way to generate a filter file? I hope that I don't have to do it manually, because there are literally hundreds of warnings.