def has_error
import bolt@1.27.0.0/src/lint/plan.bend as Planimport Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/config.bend as Config
607# whether any is an error
608def has_error(gs: List<&2, F.Graded>) -> Bool:
609 match gs:
610 case Nil{}:
611 False{}
612 case Con{F.Graded{ll, _ff}, rest}:
613 +more = has_error(rest)
614 Bool.or(Config.is_error(ll), more)