mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-20 16:21:47 +03:00
Add the filePath to errors reported in the file traversal for a multi rule
This commit is contained in:
parent
c1f752a486
commit
9cd0a478ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user