Krikri::Lint::Noqa
Inline suppression comments (# noqa, # noqa: rule[,rule]).
Mirrors upstream: a comment on the violation's line or anywhere in
the enclosing task (between the task's start line and the
violation line) suppresses it.
Constants
NOQA_RE = /#\s*noqa(?::\s*(?<ids>.*))?/
Class methods
suppresses?(map : Hash(Int32, Entry), line : Int32, task_line : Int32 | Nil, rule_id : String, task_end_line : Int32 | Nil = nil) : Bool
The enclosing task's line span, when known: a # noqa: anywhere
between the task's first and last line suppresses its
violations, matching upstream, which walks every comment in the
task's YAML subtree.