Skip to main content

promote_policy_finding_warns

Function promote_policy_finding_warns 

Source
pub fn promote_policy_finding_warns(results: &mut AnalysisResults)
Expand description

Promote per-finding warn policy-violation severities to error for a strict (fail-on-issues) run. Policy findings carry their effective severity baked by the evaluator, so the rule-level promotion in promote_warns_to_errors alone would not flip findings whose rule explicitly opted down to warn; under strict mode every warning fails.