Add rules and remove some Debug functions.

This commit is contained in:
Dillon Kearns 2021-06-08 15:22:46 -07:00
parent e38c3bda3e
commit 8572a54b6e
3 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@
"elm/project-metadata-utils": "1.0.2",
"jfmengels/elm-review": "2.4.2",
"jfmengels/elm-review-common": "1.0.4",
"jfmengels/elm-review-debug": "1.0.6",
"jfmengels/elm-review-performance": "1.0.0",
"jfmengels/elm-review-unused": "1.1.11",
"sparksp/elm-review-imports": "1.0.1",

View File

@ -11,6 +11,8 @@ when inside the directory containing this file.
-}
import NoDebug.Log
import NoDebug.TodoOrToString
import NoExposingEverything
import NoImportingEverything
import NoInconsistentAliases
@ -91,6 +93,10 @@ config =
]
, NoUnoptimizedRecursion.rule (NoUnoptimizedRecursion.optOutWithComment "known-unoptimized-recursion")
|> ignoreInTest
, NoDebug.Log.rule
|> ignoreInTest
, NoDebug.TodoOrToString.rule
|> ignoreInTest
]
|> List.map
(\rule ->

View File

@ -95,7 +95,7 @@ document pathPatterns payload =
_ ->
[ Html.text "Page not found"
, Html.text <| Debug.toString payload
, Html.text <| "TODO"
]
)
}