Forbid the use of modules that are never used in your project.
**
rule : Review.Rule.Rule
Forbid the use of modules that are never used in your project.
A module is considered used if
main
function (be it exposed or not)Test
moduleelm.json
's exposed-modules
ReviewConfig
config =
[ NoUnused.Modules.rule
]
You can try this rule out by running the following command:
elm-review --template jfmengels/elm-review-unused/example --rules NoUnused.Modules