[ 
https://jira.codehaus.org/browse/MFINDBUGS-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295521#comment-295521
 ] 

Alejandro Rivera commented on MFINDBUGS-166:
--------------------------------------------

Just noticed the patch contains changes to the import section. Sorry, my IDE 
did that by default and didn't catch it before creating and uploading it. Pls 
don't apply that section of the patch if you don't want to.
                
> Add support for excluding Baseline Bugs
> ---------------------------------------
>
>                 Key: MFINDBUGS-166
>                 URL: https://jira.codehaus.org/browse/MFINDBUGS-166
>             Project: Maven 2.x FindBugs Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.4.1
>            Reporter: Alejandro Rivera
>            Assignee: Garvin LeClaire
>         Attachments: excludeBugsFile.patch, excludeBugsFile.patch
>
>
> 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:
> {code}
> ...
>     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);
>                 }
>             }
>         }
>         ...
> {code}
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to