mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-27 02:19:27 +03:00
Create helper function
This commit is contained in:
parent
1f78ba22b6
commit
0c7b30c562
@ -4549,7 +4549,7 @@ computeFinalProjectEvaluation :
|
||||
-> { project : ValidProject, ruleProjectVisitors : List RuleProjectVisitor, step : Step, fixedErrors : FixedErrors }
|
||||
computeFinalProjectEvaluation reviewOptions project ruleProjectVisitors fixedErrors =
|
||||
let
|
||||
( errors, newRuleProjectVisitors ) =
|
||||
computeFinalProjectEvaluationHelp rules =
|
||||
List.foldl
|
||||
(\((RuleProjectVisitor rule) as untouched) ( accErrors, accRules ) ->
|
||||
case rule.finalProjectEvaluation of
|
||||
@ -4564,7 +4564,10 @@ computeFinalProjectEvaluation reviewOptions project ruleProjectVisitors fixedErr
|
||||
( accErrors, untouched :: accRules )
|
||||
)
|
||||
( [], [] )
|
||||
ruleProjectVisitors
|
||||
rules
|
||||
|
||||
( errors, newRuleProjectVisitors ) =
|
||||
computeFinalProjectEvaluationHelp ruleProjectVisitors
|
||||
in
|
||||
case findFix reviewOptions project errors fixedErrors Nothing of
|
||||
Just ( postFixStatus, fixResult ) ->
|
||||
|
Loading…
Reference in New Issue
Block a user