From 8572a54b6ee4f2d6651b2237faa3829e50930b64 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Tue, 8 Jun 2021 15:22:46 -0700 Subject: [PATCH] Add rules and remove some Debug functions. --- review/elm.json | 1 + review/src/ReviewConfig.elm | 6 ++++++ src/NotFoundReason.elm | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/review/elm.json b/review/elm.json index e0597bcf..96dd8cbd 100644 --- a/review/elm.json +++ b/review/elm.json @@ -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", diff --git a/review/src/ReviewConfig.elm b/review/src/ReviewConfig.elm index 8bb8a518..2c14ca19 100644 --- a/review/src/ReviewConfig.elm +++ b/review/src/ReviewConfig.elm @@ -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 -> diff --git a/src/NotFoundReason.elm b/src/NotFoundReason.elm index 301c7b9f..896b5ed6 100644 --- a/src/NotFoundReason.elm +++ b/src/NotFoundReason.elm @@ -95,7 +95,7 @@ document pathPatterns payload = _ -> [ Html.text "Page not found" - , Html.text <| Debug.toString payload + , Html.text <| "TODO" ] ) }