#256 Attempt to fix Rust linter issues
This commit is contained in:
parent
a3b7056cad
commit
da8408501c
@ -17,14 +17,15 @@ function! ale_linters#rust#rustc#HandleRustcErrors(buffer_number, errorlines) ab
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let l:error = json_decode(l:errorline)
|
let l:error = json_decode(l:errorline)
|
||||||
if !has_key(l:error, 'code') && !has_key(l:error, 'message')
|
|
||||||
continue
|
|
||||||
endif
|
|
||||||
|
|
||||||
if has_key(l:error, 'message')
|
if has_key(l:error, 'message')
|
||||||
let l:error = l:error.message
|
let l:error = l:error.message
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !has_key(l:error, 'code')
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
if !empty(l:error.code) && index(g:ale_rust_ignore_error_codes, l:error.code.code) > -1
|
if !empty(l:error.code) && index(g:ale_rust_ignore_error_codes, l:error.code.code) > -1
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user