Skip to main content

is_disabled

Function is_disabled 

Source
pub fn is_disabled(source: &str, line: usize, rule_id: &RuleId) -> bool
Expand description

Whether a // slopguard-disable-next-line directive suppresses rule_id on 1-based line of source. A directive with no rule id suppresses every rule; one naming a rule suppresses only that rule. Mirrors the filtering in filter_disabled for callers that hold a position rather than a finding (the --fix pass).