Expand description
Parsing and application of #t(...) suppression directives.
Structsยง
- Suppression
Entry ๐ - 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
trueifruleis 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ยง
- Line
Suppress ๐Map - Map from 1-based line number to the list of rule names suppressed on that line.