Add the filePath to errors reported in the file traversal for a multi rule

This commit is contained in:
Jeroen Engels 2019-10-31 12:50:07 +01:00
parent c1f752a486
commit 9cd0a478ee

View File

@ -463,9 +463,12 @@ multiAnalyzer (MultiSchema schema) project =
contextsAndErrorsPerFile : List ( List Error, context )
contextsAndErrorsPerFile =
List.map
(visitFileForMulti
(schema.fileVisitor initialContext)
initialContext
(\file ->
visitFileForMulti
(schema.fileVisitor initialContext)
initialContext
file
|> Tuple.mapFirst (List.map (\(Error err) -> Error { err | filePath = file.path }))
)
files
in