~/bend-docscommunity

bolt/config.bend fails

raw source on the hub · import 0x729eecea86ea5a2cdba3a2856a313bca/bolt/config.bend as Config

bolt/config: what a project asks of bolt, read from the bolt.bend nearest a file (its own directory, then each parent: candidates, read by the caller, then nearest). The file is plain Bend that bend can check: a def a setting, its body one string. A group sets every rule in it, a rule set by name wins over its group, and an unset group has its default (correctness at error, pedantic off, the rest at warn):

# every rule an error def correctness() -> String: "error" def style() -> String: "error" # but width is advice here def space() -> String: "warn"

A level is "off", "warn" or "error".

5 imports
import Base
import ../lazy/lazy.bend as Lazy
import ../syntax/lex.bend as Lex
import ../syntax/tree.bend as Tree
import ../syntax/bind.bend as Bind