From 041b78bb733db34ccc162c5664b33a5812300605 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Thu, 29 Jul 2021 13:15:57 -0700 Subject: [PATCH] Add rule. --- review/elm.json | 1 + review/src/ReviewConfig.elm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/review/elm.json b/review/elm.json index a4311627..69d86b2b 100644 --- a/review/elm.json +++ b/review/elm.json @@ -14,6 +14,7 @@ "jfmengels/elm-review-debug": "1.0.6", "jfmengels/elm-review-performance": "1.0.1", "jfmengels/elm-review-unused": "1.1.15", + "mthadley/elm-review-unit": "2.0.1", "sparksp/elm-review-imports": "1.0.1", "stil4m/elm-syntax": "7.2.6" }, diff --git a/review/src/ReviewConfig.elm b/review/src/ReviewConfig.elm index 5c76b2b4..92369083 100644 --- a/review/src/ReviewConfig.elm +++ b/review/src/ReviewConfig.elm @@ -20,6 +20,7 @@ import NoMissingTypeAnnotation import NoMissingTypeAnnotationInLetIn import NoMissingTypeExpose import NoModuleOnExposedNames +import NoUnmatchedUnit import NoUnoptimizedRecursion import NoUnused.CustomTypeConstructorArgs import NoUnused.CustomTypeConstructors @@ -69,6 +70,7 @@ config = -- alias is exposed - see https://github.com/jfmengels/elm-review-common/issues/1 , "src/ApiRoute.elm" -- incorrect result ] + , NoUnmatchedUnit.rule ] ++ (noUnusedRules |> List.map