pub fn exit_code(findings: &[Finding], gate: bool) -> i32
Returns 2 if gate and findings is non-empty, else 0.
gate
findings