pub fn exit_code(report: &FleetReport, gate: &GateConfig) -> u8Expand description
The §8 exit code for an already-assembled (trustworthy) report.
Precedence is resolved by the caller for the “could not scan” cases (config
invalid, DB unloadable/stale) → 2. Here we resolve the rest: any errored
repo or zero repos scanned is still 2 (a gap means we cannot claim clean);
otherwise 1 if the gate trips, else 0.