~/bend-docscommunity

no_unused/imports.bend checks

raw source on the hub · import bend-lint-rules@0.2.2.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.2.2.0/linter/lint.bend as Lint
import bend-lint-api@0.2.2.0/shared/lists.bend as Lists
import bend-lint-api@0.2.2.0/shared/strings.bend as Strings

Definitions

def deleted source · line 11 · raw

@+text:String -> @path:String -> @at:U32 -> List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Fix>

The fix that deletes the import's line.

def unused source · line 20 · raw

@text:String -> @d:0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Declaration -> List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Finding>

def findings source · line 37 · raw

@declarations:List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Declaration> -> @+text:String -> @out:List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Finding> -> List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Finding>

def run source · line 48 · raw

@+here:0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Here -> 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Ask(List<&2, 0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Finding>)

def rule source · line 51 · raw

0xd69a1e32f167d67a827d0d362dfcf729/linter/lint.Rule