diff options
Diffstat (limited to 'ale_linters/scss/scsslint.vim')
-rw-r--r-- | ale_linters/scss/scsslint.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/scss/scsslint.vim b/ale_linters/scss/scsslint.vim index d75743a3..2331ac16 100644 --- a/ale_linters/scss/scsslint.vim +++ b/ale_linters/scss/scsslint.vim @@ -9,8 +9,9 @@ function! ale_linters#scss#scsslint#Handle(buffer, lines) abort let l:output = [] for l:match in ale#util#GetMatches(a:lines, l:pattern) - if g:ale_warn_about_trailing_whitespace && l:match[4] =~# '^TrailingWhitespace' - " Skip trailing whitespace warnings if that option is on. + if !ale#Var(a:buffer, 'warn_about_trailing_whitespace') + \&& l:match[4] =~# '^TrailingWhitespace' + " Skip trailing whitespace warnings if that option is off. continue endif |