summaryrefslogtreecommitdiff
path: root/ale_linters/python/flake8.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-09-15 13:08:35 +0100
committerw0rp <devw0rp@gmail.com>2016-09-15 13:08:35 +0100
commitd3047c9cf643cb80418b394c6cf16bc9dcec916d (patch)
tree4c183613c71d78e46fe42780da83d5eba794941e /ale_linters/python/flake8.vim
parentc4fb7f949d7880a80e4b1879cf6cd5c2d251980e (diff)
downloadale-d3047c9cf643cb80418b394c6cf16bc9dcec916d.zip
Output error codes in the error text too for flake8.
Diffstat (limited to 'ale_linters/python/flake8.vim')
-rw-r--r--ale_linters/python/flake8.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim
index ba754fef..437bc01d 100644
--- a/ale_linters/python/flake8.vim
+++ b/ale_linters/python/flake8.vim
@@ -21,7 +21,7 @@ function! ale_linters#python#flake8#Handle(buffer, lines)
let line = l:match[1] + 0
let column = l:match[2] + 0
let code = l:match[3]
- let text = l:match[4]
+ let text = code . ': ' . l:match[4]
let type = code[0] ==# 'E' ? 'E' : 'W'
if code ==# 'W291' && !g:ale_warn_about_trailing_whitespace