elm-review-debug
Provides elm-review
rules to detect debug code.
Provided rules
-
🔧 NoDebug.Log
- Reports uses ofDebug.Log
. -
NoDebug.TodoOrToString
- Reports uses ofDebug.todo
andDebug.toString
.
Configuration
module ReviewConfig exposing (config)
import NoDebug.Log
import NoDebug.TodoOrToString
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoDebug.Log.rule
, NoDebug.TodoOrToString.rule
]
Try it out
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-debug/example