jfmengels/elm-review-unused/1.1.22

NOTE: the latest version is 1.2.6

NoUnused.Modules

Forbid the use of modules that are never used in your project.

rule : Rule

Forbid the use of modules that are never used in your project.

A module is considered used if

  • it contains a main function (be it exposed or not)
  • it imports the Test module
  • it is imported in any other modules, even if it is not used.
  • the project is a package and the module is part of the elm.json's exposed-modules
  • it is named ReviewConfig
config =
    [ NoUnused.Modules.rule
    ]

Try it out

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

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