Closed tosiara closed 4 years ago
use -exitcode
option :)
https://spotbugs.readthedocs.io/en/stable/running.html#project-configuration-options
As far as I can see this option overrides the zero
and spotbugs will always return the value you provide.
But I'd like to get zero
if no findings, and non-zero
if there were findings. Like pretty much all security code scans do. Is this possible?
Ah sorry, miss-read the docs. This option takes no value Looks like this is what I was looking for Thanks
Hi,
Is there a way to get non-zero return value in case issues found?
I'm running like this:
$?
always shows return value is 0