Rename NoUnused.CustomTypeConstructors temporarily

This commit is contained in:
Jeroen Engels 2020-03-12 17:05:36 +01:00
parent ce1c059d4c
commit 4117baf838
3 changed files with 10 additions and 7 deletions

View File

@ -13,7 +13,7 @@ when inside the directory containing this file.
import NoDebugLog
import NoDebugTodoOrToString
import NoUnused.CustomTypeConstructors
import NoUnused.CustomTypeConstructors2
import NoUnused.Variables
import NoUnusedDependencies
import NoUnusedExports
@ -26,7 +26,7 @@ config =
[ NoDebugLog.rule
, NoDebugTodoOrToString.rule
|> Rule.ignoreErrorsForDirectories [ "tests/" ]
, NoUnused.CustomTypeConstructors.rule
, NoUnused.CustomTypeConstructors2.rule
, NoUnused.Variables.rule
, NoUnusedDependencies.rule
, NoUnusedExports.rule

View File

@ -1,4 +1,4 @@
module NoUnused.CustomTypeConstructors exposing (rule)
module NoUnused.CustomTypeConstructors2 exposing (rule)
{-| Forbid having unused custom type constructors in a file.
@ -89,7 +89,8 @@ rule =
type alias ProjectContext =
{}
{ exposedModules : Set ModuleName
}
type alias ModuleContext =
@ -103,7 +104,8 @@ type alias ModuleContext =
initProjectContext : ProjectContext
initProjectContext =
{}
{ exposedModules = Set.empty
}
fromProjectToModule : Rule.ModuleKey -> Node ModuleName -> ProjectContext -> ModuleContext
@ -118,7 +120,8 @@ fromProjectToModule _ _ projectContext =
fromModuleToProject : Rule.ModuleKey -> Node ModuleName -> ModuleContext -> ProjectContext
fromModuleToProject _ _ moduleContext =
{}
{ exposedModules = Set.empty
}
foldProjectContexts : ProjectContext -> ProjectContext -> ProjectContext

View File

@ -2,7 +2,7 @@ module NoUnusedCustomTypeConstructorsTest exposing (all)
import Elm.Project
import Json.Decode as Decode
import NoUnused.CustomTypeConstructors exposing (rule)
import NoUnused.CustomTypeConstructors2 exposing (rule)
import Review.Project as Project exposing (Project)
import Review.Test exposing (ReviewResult)
import Test exposing (Test, describe, test)