def Wrong.found
bend-lint-rules@0.2.0.0 · lib/linter/directives.bend:926
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
926def Wrong.found(
927 saids: List<&2, Said>,
928 +path: String,
929 out: List<&2, Lint.Found>
930) -> List<&2, Lint.Found>:
931 match saids:
932 case Nil{}:
933 List.reverse(&2, Lint.Found, out)
934 case Con{Wrong{Comment{b, e, l, t, body}, why}, rest}:
935 Wrong.found(
936 rest,
937 path,
938 Lint.Found{
939 "bend-lint/directive",
940 Lint.Finding{Lint.Error{}, Lint.Span{path, b, e}, why, []}
941 }
942 <> out
943 )
944 case Con{s, rest}:
945 Wrong.found(rest, path, out)