Output error codes in the error text too for flake8.

This commit is contained in:
w0rp 2016-09-15 13:08:35 +01:00
parent c4fb7f949d
commit d3047c9cf6
1 changed files with 1 additions and 1 deletions

View File

@ -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