CanonImportPath.judge: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPath Lines 90-93 of bend-lint-rules@0.2.0.0/layout/canon_import_path.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&start_line=90&end_line=93 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # A written path, against the one from `file` to `loads`, the file its import loads. def judge(file: String, +written: String, loads: String, span: Lint.Span) -> List<&2, Lint.Finding>: +want = canon(relative(segments(file ++ "/.."), segments(loads))) verdict(Bool.or(is_hub(written), String.eq(want, written)), want, span) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Finding https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Span https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=canon https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=is_hub https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=relative https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=segments https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=verdict