mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 21:15:18 +08:00
Fix #553 - Filter out errors from other files for gometalinter
This commit is contained in:
1 parent
2503eda68b
commit
548c1a1007
2 files changed
+24
-3
No files matched your search
@@ -22,7 +22,7 @@ function! ale_linters#go#gometalinter#Handler(buffer, lines) abort
|
||||
|
||||
for l:match in ale_linters#go#gometalinter#GetMatches(a:lines)
|
||||
" Omit errors from files other than the one currently open
|
||||
if ale#path#IsBufferPath(a:buffer, l:match[0])
|
||||
if !ale#path#IsBufferPath(a:buffer, l:match[1])
|
||||
continue
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user