def grade
bolt@1.27.0.0 · src/lint/plan.bend:526
import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/lint/world.bend as W
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/rules.bend as Rules
526
527
528def grade(+cs: List<&2, Conf>, +world: W.World, fs: List<&2, F.Finding>) -> List<&2, F.Graded>:
529 match fs:
530 case Nil{}:
531 Nil{}
532 case Con{F.Finding{+path, line, col, len, rule, msg}, rest}:
533 cfg = config.at(cs, world, path)
534 List.append(&2, F.Graded, Rules.graded(cfg, [F.Finding{path, line, col, len, rule, msg}]), grade(cs, world, rest))