#852 Capture error codes for pylint, throw away the msgid values

This commit is contained in:
w0rp 2017-11-15 17:35:34 +00:00
parent 08f4f8f0fc
commit cf538c3a58
2 changed files with 45 additions and 8 deletions

View file

@ -45,7 +45,8 @@ function! ale_linters#python#pylint#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'col': l:match[2] + 1,
\ 'text': l:code . ': ' . l:match[5] . ' (' . l:match[4] . ')',
\ 'text': l:match[5],
\ 'code': l:match[4],
\ 'type': l:code[:0] is# 'E' ? 'E' : 'W',
\})
endfor