mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-07 12:44:34 +08:00
Hide more trailing whitespace warnings when the option is on for flake8.
This commit is contained in:
1 parent
1a8d596d26
commit
dbbf77c19d
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user