Reputation: 719
I'm working with Netbeans and would like run static code analysis when I save a java file.
I know I can use the "Inspect" function, but this has to be called manually each time which seems quite tortuous.
Upvotes: 1
Views: 657
Reputation: 17391
This is straightforward if you are only using FindBugs for static analysis:
Select FindBugs from the Language drop list, then check the box labeled Run FindBugs in Editor. Note that the tooltip states "Will automatically run FindBugs on the currently edited file after save".
Notes:
Upvotes: 1