Skip to main content

handle_problems

Function handle_problems 

Source
pub fn handle_problems(findings: &[Finding], policy: OnProblems)
Expand description

Apply a problem-handling policy to a set of findings.

Prints findings to stderr and exits the process if the policy requires it. Returns normally when the policy allows the program to continue.

Severities come from the default, strict, LintPolicy; see handle_problems_with to use another.

handle_problems(&lint(&model, &resolved), OnProblems::FailOnError);