mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
#810 Ignore output which isn't JSON for brakeman
This commit is contained in:
@@ -9,7 +9,12 @@ function! ale_linters#ruby#brakeman#Handle(buffer, lines) abort
|
||||
return []
|
||||
endif
|
||||
|
||||
let l:result = json_decode(join(a:lines, ''))
|
||||
try
|
||||
let l:result = json_decode(join(a:lines, ''))
|
||||
catch /E474/
|
||||
" Ignore invalid JSON
|
||||
return []
|
||||
endtry
|
||||
|
||||
let l:output = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user