NOTE: the latest version is 1.2.6
Forbid the use of exposed elements that are never used in your project.
Report functions and types that are exposed from a module but that are never used in other modules. Also reports when a module is entirely unused.
🔧 Running with --fix will automatically remove all the reported errors. It won't automatically remove unused modules though.
--fix
If the project is a package and the module that declared the element is exposed, then nothing will be reported.
config = [ NoUnused.Exports.rule ]
You can try this rule out by running the following command:
elm-review --template jfmengels/elm-review-unused/example --rules NoUnused.Exports
Report functions and types that are exposed from a module but that are never used in other modules. Also reports when a module is entirely unused.
🔧 Running with
--fixwill automatically remove all the reported errors. It won't automatically remove unused modules though.If the project is a package and the module that declared the element is exposed, then nothing will be reported.
Try it out
You can try this rule out by running the following command: