scanner: only output "X problems found" if errors or --verbose

UNIX/POSIX standard behavior is to output nothing at all if a command
succeeds.  This suppresses "0 problems found", unless the user requests it.
This commit is contained in:
Hans-Christoph Steiner 2025-03-20 10:25:50 +01:00
parent 78efc16fc2
commit 35d205a9b9

View file

@ -1294,7 +1294,7 @@ def main():
logging.info(_("Finished"))
if options.json:
print(json.dumps(json_output))
else:
elif probcount or options.verbose:
print(_("%d problems found") % probcount)