elm-review/review/ReviewConfig.elm

41 lines
1.1 KiB
Elm

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 NoDebug.Log
import NoDebug.TodoOrToString
import NoTodoComment
import NoUnused.CustomTypeConstructors
import NoUnused.Dependencies
import NoUnused.Exports
import NoUnused.Modules
import NoUnused.Variables
import Review.Rule as Rule exposing (Rule)
config : List Rule
config =
[ NoDebug.Log.rule
, NoDebug.TodoOrToString.rule
|> Rule.ignoreErrorsForDirectories [ "tests/" ]
, NoUnused.CustomTypeConstructors.rule
, NoUnused.Variables.rule
, NoUnused.Dependencies.rule
, NoUnused.Exports.rule
|> Rule.ignoreErrorsForFiles [ "tests/Scope.elm" ]
, NoUnused.Modules.rule
--, NoTodoComment.rule
-- |> Rule.ignoreErrorsForFiles [ "NoTodoComment" ]
]
|> List.map (Rule.ignoreErrorsForDirectories [ "src/Vendor/" ])