Skip to main content

exit_code

Function exit_code 

Source
pub fn exit_code(summary: &ReportSummary, threshold: &Severity) -> i32
Expand description

Returns a UNIX-style exit code appropriate for CI pipelines.

ConditionCode
No findings at or above threshold0
At least one finding at or above threshold1
Scanner errors occurred (regardless of finds)2

Callers may OR the codes together; e.g. code 3 = findings + errors.