spotbugs / spotbugs-maven-plugin

Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer
https://spotbugs.github.io/spotbugs-maven-plugin/
Apache License 2.0
77 stars 53 forks source link

Support for incremental analysis #56

Open mithuns opened 6 years ago

mithuns commented 6 years ago

This is more of a question than reporting a issue, does this support doing incremental analysis by adding cache property to plugin configuration ? Or something on the similar lines, the general idea is , if only 5 lines of code were changed since last commit, spotbugs does not need to analyze the entire repository code.

mithuns commented 6 years ago

Is it possible ? Missing ? A potential enhancement ? may be

iloveeclipse commented 6 years ago

In Eclipse plugin we do a trick to reduce the analysis to only changed classes (we run on "save" editor). This is faster, but this does not find all possible issues and also reports few false positives like "method xyz not used" (because it only analyses a subset of application classes).

Nevertheless you could try this approach in your case.