Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Fix Version/s: 2.5
-
Labels:None
-
Number of attachments :
Description
Findbugs 2 has a feature that allows to specify a baseline bug report so only NEW issues found are reported.
From edu.umd.cs.findbugs.FindBugs2.java:
...
protected void configureFilters(UserPreferences userPreferences) {
Set<Entry<String, Boolean>> excludeBugFiles = userPreferences.getExcludeBugsFiles().entrySet();
for (Entry<String, Boolean> entry : excludeBugFiles) {
if (entry.getValue() == null || !entry.getValue()) {
continue;
}
try {
excludeBaselineBugs(entry.getKey());
} catch (Exception e) {
String message = "Unable to read filter: " + entry.getKey() + " : " + e.getMessage();
if (getBugReporter() != null) {
getBugReporter().logError(message, e);
} else {
throw new IllegalArgumentException(message, e);
}
}
}
...
After looking through the FindBugsMojo.groovy, I noticed there's no way to pass a list of XML files when executing FindBugs.
I'd love to see support for this Baseline feature added to this plugin.