Fix bug where the initial context with elm.json visit was not used

This commit is contained in:
Jeroen Engels 2020-01-01 22:55:14 +01:00
parent 1d1e2d7f27
commit a63e7afb83

View File

@ -697,7 +697,7 @@ runMulti (MultiSchema schema) startCache project =
[ List.concatMap Tuple.first contextsAndErrorsPerFile
, contextsAndErrorsPerFile
|> List.map Tuple.second
|> List.foldl schema.context.fold schema.context.initGlobalContext
|> List.foldl schema.context.fold initialContext
|> schema.finalEvaluationFn
|> List.map (\(Error err) -> Error { err | ruleName = schema.name })
]