lue-bird/elm-review-mini-common/1.0.0

DebugIsNotUsed

review : Review

Report using a member of the Debug module

  • Debug.todo marks missing functionality which needs to be added gradually
  • Debug.log is a quick and dirty way to display an elm value in the console and can for example be used to inspect private (opaque) types. It's nothing a published product should make use of.
  • Debug.toString is a quick and dirty way to display an elm value anywhere, similar to Debug.log

Using any Debug member also prevents compiling in optimized mode and publishing as a package.

reported

a =
    "" |> Debug.log "text"


b =
    Debug.todo ""


c =
    1 |> Debug.toString

not reported

a =
    consoleWarnPort "text"


c =
    1 |> String.fromInt