Skip to main content

Module disable

Module disable 

Source

Functionsยง

filter_disabled
Filter out findings that are suppressed by // slopguard-disable-next-line comments in the source code.
is_disabled
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).