Provides elm-review rules to detect debug code.
NoDebug.Log - Reports uses of Debug.Log.NoDebug.TodoOrToString - Reports uses of Debug.todo and Debug.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