def when
import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directivesimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
1091def when(has: Bool, +linted: Linted, founds: List<&2, Lint.Found>) -> Suppressed:
1092 match has:
1093 case True{}:
1094 scanned(Scan.of(Linted.text(linted)), linted, founds)
1095 case False{}:
1096 Suppressed{founds, []}