def settings.at

bolt@1.27.0.0 · src/lint/plan.bend:452

import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/rules/correctness/setting.bend as Setting

452# the `setting` rule's findings on each bolt.bend the World read, in order
453def settings.at(gs: List<&2, Got>) -> List<&2, F.Finding>:
454  match gs:
455    case Nil{}:
456      Nil{}
457    case Con{Got{+path, Some{text}}, rest}:
458      List.append(&2, F.Finding, Setting.check(path, text), settings.at(rest))
459    case Con{Got{_path, None{}}, rest}:
460      settings.at(rest)

Uses (6)

Used by (1)