def found
bolt@1.27.0.0 · src/rules/correctness/setting.bend:21
import bolt@1.27.0.0/src/rules/correctness/setting.bend as Setting
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/config.bend as Config
21
22def found(ss: List<&2, Config.Setting>, +path: String) -> List<&2, F.Finding>:
23 match ss:
24 case Nil{}:
25 Nil{}
26 case Con{Config.Setting{n, _w, line}, rest}:
27 F.Finding{path, line, 0, 0, "setting", "`" ++ n ++ "` names no rule or group, so it sets nothing."}
28 <> found(rest, path)