Proscpector: all tools except pylint return 1-based column numbers.
This commit is contained in:
parent
ba1b4606e7
commit
1327780c5c
@ -88,10 +88,14 @@ function! syntastic#preprocess#prospector(errors) " {{{2
|
|||||||
for e in errs['messages']
|
for e in errs['messages']
|
||||||
if type(e) == type({})
|
if type(e) == type({})
|
||||||
try
|
try
|
||||||
|
if e['source'] ==# 'pylint'
|
||||||
|
let e['location']['character'] += 1
|
||||||
|
endif
|
||||||
|
|
||||||
let msg =
|
let msg =
|
||||||
\ e['location']['path'] . ':' .
|
\ e['location']['path'] . ':' .
|
||||||
\ e['location']['line'] . ':' .
|
\ e['location']['line'] . ':' .
|
||||||
\ (e['location']['character'] + 1) . ': ' .
|
\ e['location']['character'] . ': ' .
|
||||||
\ e['code'] . ' ' .
|
\ e['code'] . ' ' .
|
||||||
\ e['message'] . ' ' .
|
\ e['message'] . ' ' .
|
||||||
\ '[' . e['source'] . ']'
|
\ '[' . e['source'] . ']'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user