jfmengels / review-unused / NoUnused.Variables

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

Rule

rule : Review.Rule.Rule

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

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