summaryrefslogtreecommitdiff
path: root/ale_linters/python/pylint.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-15 17:35:34 +0000
committerw0rp <devw0rp@gmail.com>2017-11-15 17:35:34 +0000
commitcf538c3a58d61cfe1a77d79455efb9175479fba3 (patch)
tree10d39afa2ce21641ab689cfd35fd84218f66cf2a /ale_linters/python/pylint.vim
parent08f4f8f0fc2a6698dd48da7871209070ddfdb754 (diff)
downloadale-cf538c3a58d61cfe1a77d79455efb9175479fba3.zip
#852 Capture error codes for pylint, throw away the msgid values
Diffstat (limited to 'ale_linters/python/pylint.vim')
-rw-r--r--ale_linters/python/pylint.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim
index befc51a5..e3e6624d 100644
--- a/ale_linters/python/pylint.vim
+++ b/ale_linters/python/pylint.vim
@@ -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