Reputation: 41939
I'm running FindBugs in Maven and my IntelliJ. I'd like to ensure that executing FindBugs in either tool results in the same analysis. It'd be confusing to developers if IntelliJ and Maven output different errors/warnings when running the static analysis tool.
Maven
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.4-SNAPSHOT</version>
</plugin>
FindBugs-IDEA Setup
I see that FindBugs can be configured in Maven with different Thresholds
and Efforts
, but how can I synchronize IntelliJ's and Maven's FindBugs config?
Example:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.4-SNAPSHOT</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
...
</plugin>
http://mojo.codehaus.org/findbugs-maven-plugin/examples/violationChecking.html
Upvotes: 1
Views: 584
Reputation: 41939
Analysis Effort
based on POM effort
Confidence Level
based on POM threshold
Upvotes: 1