Skip to main content

apply_effective_severities

Function apply_effective_severities 

Source
pub fn apply_effective_severities(
    results: &mut AnalysisResults,
    config: &ResolvedConfig,
)
Expand description

Write the gate severity onto each dead-code finding in results.

Call this after the findings whose rule is off are removed. The function overwrites any earlier value, so a second call with the same config gives the same result.