Created
January 11, 2022 14:19
-
-
Save duncanmalashock/70a9eef633523423fe57cf55e3ebce12 to your computer and use it in GitHub Desktop.
ReviewConfig for removing unused code using `elm-review`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ReviewConfig exposing (config) | |
{-| Do not rename the ReviewConfig module or the config function, because | |
`elm-review` will look for these. | |
To add packages that contain rules, add them to this review project using | |
`elm install author/packagename` | |
when inside the directory containing this file. | |
-} | |
import NoUnused.Variables | |
import Review.Rule | |
config : List Review.Rule.Rule | |
config = | |
[ NoUnused.Variables.rule | |
] | |
|> List.map | |
(Review.Rule.ignoreErrorsForDirectories | |
[ "src/elm/DontScanMe/" | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment