def check.role

bolt@1.27.0.0 · src/rules/style/doc.bend:95

import bolt@1.27.0.0/src/rules/style/doc.bend as Doc
import Base
import bolt@1.27.0.0/src/src.bend as Src
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
import bolt@1.27.0.0/src/paths.bend as Paths
import bolt@1.27.0.0/src/role.bend as Role

95# the rule, told the file's role (src/role.bend): a proof file is skipped
96def check.role(rr: Role.Role, ss: Src.Src) -> List<&2, F.Finding>:
97  Src.Src{+path, text, toks, tree, bound, items} = ss
98  Lazy.stop(List<&2, F.Finding>, Bool.or(Role.is_proof(rr), Paths.is_test(path)),
99    [], _u => check.go(items, path, lines(text, toks)))

Uses (10)

Used by (1)