jfmengels/elm-lint/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Lint.Rules.NoDebug

rule : String -> List Error

Forbid the use of Debug before it goes into production.

rules =
    [ NoDebug.rule
    ]

Fail

if Debug.log "condition" condition then a else b
if condition then
    Debug.crash "Nooo!"
else
    value

Success

if condition then
    a
else
    b