Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

When using the FindBugs plugin you can specify certain rules to run or just give a list of rules not to run:

 Go here http://findbugs.sourceforge.net/api/edu/umd/cs/findbugs/detect/package-summary.html to see the list of names that are allowed in the comma delimited list These are the names that can be used in the "visitor" sections below.

Code Block
<reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <configuration>
                    <xmlOutput>true</xmlOutput>
                    <xmlOutputDirectory>
                        ${project.build.directory}/findbugs-reports
                    </xmlOutputDirectory>
                    <threshold>Medium</threshold>
                    <effort>Max</effort>
                    <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
                    <includeFilterFile>findbugs-include.xml</includeFilterFile>
                    <visitors>
                         FindDeadLocalStores,UnreadFields
                    </visitors>
                    <omitVisitors>
                        FindDeadLocalStores,UnreadFields
                    </omitVisitors>
                    <onlyAnalyze>org.codehaus.mojo.findbugs.*</onlyAnalyze>
                    <pluginList>/libs/fb-contrib/fb-contrib-2.8.0.jar</pluginList>
                    <debug>false</debug>
                    <relaxed>true</relaxed>
                </configuration>
            </plugin>