spotbugs / spotbugs

SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.
https://spotbugs.github.io/
GNU Lesser General Public License v2.1
3.46k stars 585 forks source link

SpotBugs lifecycle and event when a scan completed #555

Open h3xstream opened 6 years ago

h3xstream commented 6 years ago

This is more a question than a feature request.

If I want to do a clean up task at the end the analysis (all detector have completed their work), is there an API to register for such event?

What is the best documentation to have the complete overview of SpotBugs lifecycle? (At the moment FindBugs2 class is my documentation)

h3xstream commented 6 years ago

Detector2.finishPass() Is the API the closest to my needs. https://github.com/ps-mr/FindBugsBenchmark/blob/master/src/java/edu/umd/cs/findbugs/Detector2.java#L45