summaryrefslogtreecommitdiff
path: root/ale_linters/python/flake8.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-14 09:41:29 +0000
committerw0rp <devw0rp@gmail.com>2017-11-14 09:41:29 +0000
commitd8f9aef84a1271633cb4fc7ba7a063e4b922d56b (patch)
tree4394cf299b2fc7badf75c2ba97be5a8ac470e780 /ale_linters/python/flake8.vim
parent037aaae593bba96b71d89c6f9bd5f14e3846e067 (diff)
downloadale-d8f9aef84a1271633cb4fc7ba7a063e4b922d56b.zip
#852 - Capture error codes for flake8
Diffstat (limited to 'ale_linters/python/flake8.vim')
-rw-r--r--ale_linters/python/flake8.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim
index 501db0b1..480e6058 100644
--- a/ale_linters/python/flake8.vim
+++ b/ale_linters/python/flake8.vim
@@ -94,7 +94,8 @@ function! ale_linters#python#flake8#Handle(buffer, lines) abort
let l:item = {
\ 'lnum': l:match[1] + 0,
\ 'col': l:match[2] + 0,
- \ 'text': l:code . ': ' . l:match[4],
+ \ 'text': l:match[4],
+ \ 'code': l:code,
\ 'type': 'W',
\}