type Run
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
1258# How a rule runs: once per linted file, reporting only in it; or once per check, on the whole program, reporting in any
1259# file (what it finds in a file that is not linted is dropped). When several entries check the named file, a program
1260# rule's finding stays if some check finds it, or, if `every`, if every check finds it; then, if an entry that reads the
1261# named file fails its check, the rule does not run.
1262type Run is Type:
1263 OnFile{run: @+here: Here -> Ask(List<&2, Finding>)}
1264 OnProgram{every: Bool, run: @+whole: Whole -> Ask(List<&2, Finding>)}