Expand description
Pragma handling for inline rule disabling.
Supports comment-based rule disabling similar to ESLint:
# dclint-disable- Disable all rules for the rest of the file# dclint-disable rule-name- Disable specific rule(s) globally# dclint-disable-next-line- Disable all rules for the next line# dclint-disable-next-line rule-name- Disable specific rule(s) for next line# dclint-disable-file- Disable all rules for the entire file
Structs§
- Pragma
State - Tracks which rules are disabled at which lines.
Functions§
- extract_
global_ disable_ rules - Extract global disable rules from the first comment line. Returns set of disabled rule names (empty string means all disabled).
- extract_
line_ disable_ rules - Extract line-specific disable rules. Returns map of line number -> set of disabled rules.
- extract_
pragmas - Extract pragmas from source content.
- starts_
with_ disable_ file_ comment - Check if file starts with a disable-file comment.