summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-12 15:36:59 +0100
committerw0rp <devw0rp@gmail.com>2016-10-12 15:36:59 +0100
commitdbbf77c19d8a8eb08c819d789e875219f3405a0f (patch)
treeafc3baddb2276520d2db1d242f8e0ecbcce83f8e
parent1a8d596d2606c7e49fe9d91f6ccbff5719e8bae3 (diff)
downloadale-dbbf77c19d8a8eb08c819d789e875219f3405a0f.zip
Hide more trailing whitespace warnings when the option is on for flake8.
-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 549eaf7f..cc4c604f 100644
--- a/ale_linters/python/flake8.vim
+++ b/ale_linters/python/flake8.vim
@@ -27,7 +27,7 @@ function! ale_linters#python#flake8#Handle(buffer, lines)
let l:text = l:code . ': ' . l:match[4]
let l:type = l:code[0] ==# 'E' ? 'E' : 'W'
- if l:code ==# 'W291' && !g:ale_warn_about_trailing_whitespace
+ if (l:code ==# 'W291' || l:code ==# 'W293') && !g:ale_warn_about_trailing_whitespace
" Skip warnings for trailing whitespace if the option is off.
continue
endif