Findbug Filters with your Maven Findbugs plugin
Do you want to pick the Findbugs bug categories you report?
This is done within your project.properties file. Below is a sample entry from your project.properties file:
maven.findbugs.includeFilter = /Apache/Maven1.0/support/findbugs/includeFilter.xml
This parameter takes a filename of an XML file that contains a definition of the bug(s) to include in the report.
A file could contain the following:
<FindBugsFilter>
<Match classregex="jsp_servlet.*" >
<BugCode name="Nm,DLS" />
</Match>
<Match classregex=".*" >
<BugCode name="Nm" />
</Match>
</FindBugsFilter>
The above tells Findbugs to include Nm and DLS category bugs for all jsp_servlet.* packages and Nm category bugs for the remainder of the code.
maven.findbugs.excludeFilter = /Apache/Maven1.0/support/findbugs/excludeFilter.xml
This parameter takes a filename of an XML file that contains a definition of the bug(s) to exclude in the report.
The file format would be the sames as that for the includeFilter but would state what bugs not to report.
For more information see Chapter 8. Filter Files

3 Comments:
Blogs are so informative where we get lots of information on any topic. Nice job keep it up!!
_____________________________
Communication Dissertation
nice blog and very informative blog.
- Software Development Company India
This kind of information is very limited on internet. Nice to find the post related to my searching criteria. Your updated and informative post will be appreciated by blog loving people.
Dissertation Methodology
Post a Comment
<< Home