spotbugs-maven-plugin icon indicating copy to clipboard operation
spotbugs-maven-plugin copied to clipboard

Support for incremental analysis

Open mithuns opened this issue 7 years ago • 2 comments

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 avatar May 19 '18 06:05 mithuns

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

mithuns avatar Aug 14 '18 16:08 mithuns

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.

iloveeclipse avatar Aug 15 '18 06:08 iloveeclipse