def Run.finding
bend-lint-rules@0.2.0.0 · performance/missed_fork.bend:364
import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedFork
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
364
365def Run.finding(+bounds: List<&2, Bound>, +owner: Owner) -> List<&2, Lint.Finding>:
366 match bounds owner:
367 case Con{
368 Bound{f, w, b, Lint.Node{s, n, Some{Lint.Span{path, beg, end}}, k, fs}},
369 Con{second, more}
370 } Owner{target, name, io, +text}:
371 Lint.finding(
372 Lint.Hint{},
373 Bool.not(Run.alike(Bound.texts(bounds, text, [], []))),
374 Some{Lint.Span{path, Bound.from(List.last(&2, Bound, bounds)), end}},
375 Run.message(name, Bound.texts(bounds, text, [], []))
376 )
377 case _ _:
378 []