pub fn lint_exit_code(findings: &[Finding]) -> i32Expand description
The lint exit code computed from the findings: 1 if any Error or Warning
is present, 0 if there are none or only Info advisories. The operational
2 (unreadable file or bad arguments) is handled in [run_lint] and by clap,
never here.