From dbbf77c19d8a8eb08c819d789e875219f3405a0f Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 12 Oct 2016 15:36:59 +0100 Subject: [PATCH] Hide more trailing whitespace warnings when the option is on for flake8. --- ale_linters/python/flake8.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index 549eaf7..cc4c604 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