Remove name field from RunnableProjectVisitor

This commit is contained in:
Jeroen Engels 2020-06-26 16:59:36 +02:00
parent b3278457c3
commit 673de4cb0f
2 changed files with 2 additions and 4 deletions

View File

@ -401,8 +401,7 @@ fromProjectRuleSchema ((ProjectRuleSchema schema) as projectRuleSchema) =
fromProjectRuleSchemaToRunnableProjectVisitor : ProjectRuleSchema schemaState projectContext moduleContext -> Review.Visitor.RunnableProjectVisitor projectContext moduleContext
fromProjectRuleSchemaToRunnableProjectVisitor (ProjectRuleSchema schema) =
{ name = schema.name
, initialProjectContext = schema.initialProjectContext
{ initialProjectContext = schema.initialProjectContext
, elmJsonVisitors = List.reverse schema.elmJsonVisitors
, readmeVisitors = List.reverse schema.readmeVisitors
, dependenciesVisitors = List.reverse schema.dependenciesVisitors

View File

@ -76,8 +76,7 @@ type alias RunnableModuleVisitor moduleContext =
type alias RunnableProjectVisitor projectContext moduleContext =
{ name : String
, initialProjectContext : projectContext
{ initialProjectContext : projectContext
, elmJsonVisitors : List (Maybe { elmJsonKey : ElmJsonKey, project : Elm.Project.Project } -> projectContext -> ( List (Error {}), projectContext ))
, readmeVisitors : List (Maybe { readmeKey : ReadmeKey, content : String } -> projectContext -> ( List (Error {}), projectContext ))
, dependenciesVisitors : List (Dict String Review.Project.Dependency.Dependency -> projectContext -> ( List (Error {}), projectContext ))