def silenced
import bolt@1.27.0.0/src/noqa.bend as Noqaimport Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
235# a mark of the file at the path, on the line, names the code
236def silenced(ms: List<&2, Marks>, +path: String, +line: U32, +code: String) -> Bool:
237 match ms:
238 case Nil{}:
239 False{}
240 case Con{Marks{p, mks}, rest}:
241 Lazy.or_else(Lazy.and_then(String.eq(p, path), _u => on_line(mks, line, code)),
242 _v => silenced(rest, path, line, code))