bolt/lint.bend fails
raw source on the hub · import 0x729eecea86ea5a2cdba3a2856a313bca/bolt/lint.bend as Lint
bolt/lint: bolt itself: every rule over the files it was given, or every
.bend file under the current directory when it was given none
(bolt/glob.bend). The per-file rules run on each file, the project rules on
the set; each finding is graded by the bolt.bend nearest its file
(bolt/config.bend), and a bolt.bend is read, never linted. Prints the
findings, then the counts, and exits 1 when there were errors.
11 imports
import Base import ./finding.bend as F import ./src.bend as Src import ./rules.bend as Rules import ./config.bend as Config import ./lsp/files/service.bend as Files import ./lsp/files/disk.bend as Disk import ./glob.bend as Glob import ./walk/service.bend as Walk import ./walk/disk.bend as WalkDisk import ./status.bend as Status
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}