src/finding.bend fails
raw source on the hub · import 0xde9bb08f7de298b03207fb5797ede9a5/src/finding.bend as Finding
src/finding: what a rule reports. Shown as path:line:col: level: CODE:
message (line and col 1-based, as editors count; CODE is the stable id in
src/codes.bend), so a terminal can jump to it; an editor gets it as a
diagnostic over len characters from the column (0: to the end of the
line), with that code and source bolt(group:slug). The level is the
project's (bolt.bend), not the rule's: a rule only finds. rule on a
finding is still the slug.
3 imports
import Base import ./config.bend as Config import ./codes.bend as Codes
The reader could not load this file (at 0xde9bb08f7de298b03207fb5797ede9a5/src/config.bend:32). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Set)
- observed : 'Set'
Location:
31 | # a name (a group's or a rule's) at a level
32>| type Set is Data:
| ^^^
33 | Set{name: String, level: Level}