Provides elm-review
rules to make Elm code worse (and maybe rules to undo the changes).
- 🔧
NoMultipleFunctionArguments
- Reports when a function has multiple arguments. - 🔧
NoTopLevelLambdas
- Reports when a function's body consists of a lambda expression.
module ReviewConfig exposing (config)
import NoMultipleFunctionArguments
import NoTopLevelLambdas
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoMultipleFunctionArguments.rule
, NoTopLevelLambdas.rule
]
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-bad-code/preview