def check.mark

bolt@1.27.0.0 · src/rules/style/noqa.bend:79

import bolt@1.27.0.0/src/rules/style/noqa.bend as Noqa
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/noqa.bend as Noqa

79# a mark's findings: one when it is bare, else one per code that silences
80# nothing
81def check.mark(mk: Noqa.Mark, +whole: Bool, +path: String, +gs: List<&2, F.Graded>) -> List<&2, F.Finding>:
82  match mk:
83    case Noqa.Mark{line, col, len, Nil{}}:
84      [F.Finding{path, line, col, len, "noqa", say.bare()}]
85    case Noqa.Mark{line, col, len, Con{c, rest}}:
86      check.codes(c <> rest, whole, path, line, col, len, gs)

Uses (8)

Used by (1)