no_unused/imports.bend fails
raw source on the hub · import bend-lint-rules@0.1.0.0/no_unused/imports.bend as Imports
no_unused/imports: an import that nothing in its file uses. Fix: deletes the import's line. Heuristics: a use is a name written through the import's alias, or, for Base, a name that only Base declares (Imported in lint.bend).
4 imports
import Base 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 import bend-lint-api@0.1.0.0/shared/strings.bend as Strings
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 |