mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-24 18:23:09 +03:00
Rename NoUnused.CustomTypeConstructors temporarily
This commit is contained in:
parent
ce1c059d4c
commit
4117baf838
@ -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
|
||||
|
@ -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
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user