~/bend-docscommunity

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