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']
|
||||
if type(e) == type({})
|
||||
try
|
||||
if e['source'] ==# 'pylint'
|
||||
let e['location']['character'] += 1
|
||||
endif
|
||||
|
||||
let msg =
|
||||
\ e['location']['path'] . ':' .
|
||||
\ e['location']['line'] . ':' .
|
||||
\ (e['location']['character'] + 1) . ': ' .
|
||||
\ e['location']['character'] . ': ' .
|
||||
\ e['code'] . ' ' .
|
||||
\ e['message'] . ' ' .
|
||||
\ '[' . e['source'] . ']'
|
||||
|
Loading…
x
Reference in New Issue
Block a user