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
The reader could not load this file (at 0x729eecea86ea5a2cdba3a2856a313bca/bolt/config.bend:31). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Set)
- observed : 'Set'
Location:
30 | # a name (a group's or a rule's) at a level
31>| type Set is Data:
| ^^^
32 | Set{name: String, level: Level}