jfmengels/elm-review-unused/1.1.14

NOTE: the latest version is 1.2.6

NoUnused.Variables

Report variables or types that are declared or imported but never used inside of a module.

Rule

rule : Rule

Report variables or types that are declared or imported but never used.

🔧 Running with --fix will automatically remove all the reported errors.

config =
    [ NoUnused.Variables.rule
    ]

Fail

module A exposing (a)


a n =
    n + 1


b =
    a 2

Success

module A exposing (a)


a n =
    n + 1

Try it out

You can try this rule out by running the following command:

elm-review --template jfmengels/elm-review-unused/example --rules NoUnused.Variables