Skip to main content

Module ignore

Module ignore 

Source
Expand description

Parsing and application of #t(...) suppression directives.

Structsยง

SuppressionEntry ๐Ÿ”’
One parsed #t(...) directive with its source location, scope, targets, and reason.
Suppressions ๐Ÿ”’
Pre-computed suppression state for a single file: per-line, per-file, and the raw entries.

Constantsยง

NEXT_LINE_OFFSET ๐Ÿ”’
WILDCARD ๐Ÿ”’

Functionsยง

brace_depth_change ๐Ÿ”’
filter ๐Ÿ”’
Filter out violations that are suppressed for their specific rule on that line.
is_file_suppressed ๐Ÿ”’
Return true if rule is suppressed for the entire file (via #t(file: ...) or #t(file: *)).
suppressed_lines ๐Ÿ”’
Pre-compute the suppression map, pushing violations for malformed or unknown directives.

Type Aliasesยง

LineSuppressMap ๐Ÿ”’
Map from 1-based line number to the list of rule names suppressed on that line.