layout/canon_import_path.bend fails
raw source on the hub · import bend-lint-rules@0.1.0.0/layout/canon_import_path.bend as Canon_import_path
layout/canon_import_path: an import path that is not the shortest path from the importer to the file it names, or that does not start with ./ or ../. Fix: writes the shortest path. Heuristics: it compares real paths, links resolved, so a link to a file is that file. Base and hub imports are not paths: it skips them.
3 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
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 |