Skip to content

Instantly share code, notes, and snippets.

@duncanmalashock
Created January 11, 2022 14:19
Show Gist options
  • Save duncanmalashock/70a9eef633523423fe57cf55e3ebce12 to your computer and use it in GitHub Desktop.
Save duncanmalashock/70a9eef633523423fe57cf55e3ebce12 to your computer and use it in GitHub Desktop.
ReviewConfig for removing unused code using `elm-review`
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