no_unused/imports.bend checks
raw source on the hub · import bend-lint-rules@0.1.1.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.1.0/linter/lint.bend as Lint import bend-lint-api@0.1.1.0/shared/lists.bend as Lists import bend-lint-api@0.1.1.0/shared/strings.bend as Strings
Definitions
def deleted source · line 11 · raw
@+text:String -> @path:String -> @at:U32 -> List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Fix>
The fix that deletes the import's line.
def unused source · line 20 · raw
@text:String -> @d:0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Declaration -> List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Finding>
def findings source · line 37 · raw
@declarations:List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Declaration> -> @+text:String -> @out:List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Finding> -> List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Finding>
def run source · line 48 · raw
@+here:0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Here -> 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Ask(List<&2, 0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Finding>)
def rule source · line 51 · raw
0xbf17cd8a773b73dcdd93291552ca53f8/linter/lint.Rule