From 14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 4 May 2017 23:50:11 +0100 Subject: #427 Implement b:ale_warn_about_trailing_whitespace --- autoload/ale/handlers/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/handlers/python.vim b/autoload/ale/handlers/python.vim index 02f9758a..85e2f203 100644 --- a/autoload/ale/handlers/python.vim +++ b/autoload/ale/handlers/python.vim @@ -15,7 +15,7 @@ function! ale#handlers#python#HandlePEP8Format(buffer, lines) abort let l:code = l:match[3] if (l:code ==# 'W291' || l:code ==# 'W293' || l:code ==# 'EANSIBLE002') - \ && !g:ale_warn_about_trailing_whitespace + \ && !ale#Var(a:buffer, 'warn_about_trailing_whitespace') " Skip warnings for trailing whitespace if the option is off. continue endif -- cgit v1.2.3