jfmengels/elm-lint/3.0.0

NOTE: the latest version is 4.1.2

Lint.Rules.NoDebug

rule : File -> List LintError

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