Merge pull request #223 from Fruneau/filter-out-invalid
Only keep "valid" entries in the error count.
This commit is contained in:
commit
5c0074fba6
@ -185,6 +185,8 @@ function! s:CacheErrors()
|
||||
for ft in split(fts, '\.')
|
||||
if s:Checkable(ft)
|
||||
let errors = SyntaxCheckers_{ft}_GetLocList()
|
||||
"keep only lines that effectively match an error/warning
|
||||
let errors = s:FilterLocList({'valid': 1}, errors)
|
||||
"make errors have type "E" by default
|
||||
call SyntasticAddToErrors(errors, {'type': 'E'})
|
||||
call extend(s:LocList(), errors)
|
||||
|
Loading…
x
Reference in New Issue
Block a user