From 673de4cb0f8ba83091415cc851bb062ca09ec513 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Fri, 26 Jun 2020 16:59:36 +0200 Subject: [PATCH] Remove name field from RunnableProjectVisitor --- src/Review/Rule3.elm | 3 +-- src/Review/Visitor.elm | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Review/Rule3.elm b/src/Review/Rule3.elm index e831f74c..e7ffee04 100644 --- a/src/Review/Rule3.elm +++ b/src/Review/Rule3.elm @@ -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 diff --git a/src/Review/Visitor.elm b/src/Review/Visitor.elm index 0e51b647..24e32d62 100644 --- a/src/Review/Visitor.elm +++ b/src/Review/Visitor.elm @@ -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 ))