layout/directive_order.bend fails
raw source on the hub · import bend-lint-rules@0.1.0.0/layout/directive_order.bend as Directive_order
layout/directive_order: directives that stack on consecutive comment-only lines, out of order: by rule, then severity, then keyword. Fix: writes them in that order, over the same comments. Heuristics: it reads the directives as written, and its fix writes the same comments over them, so a fix keeps the program.
4 imports
import Base import ../lib/linter/directives.bend as Directives import bend-lint-api@0.1.0.0/linter/lint.bend as Lint import bend-lint-api@0.1.0.0/shared/lists.bend as Lists
The reader could not load this file (at 0x2b0a0dcada30f71a8eb4ec2e148b9279/linter/lint.bend:522). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Text)
- observed : 'Text'
Location:
521 | Flag{on: Bool}
522>| Text{text: String}
| ^^^^
523 |