Provides elm-review
rules to detect debug code.
- 🔧
NoDebug.Log
- Reports uses ofDebug.Log
. NoDebug.TodoOrToString
- Reports uses ofDebug.todo
andDebug.toString
.
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
]
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-debug/example