diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-04 23:50:11 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-04 23:50:11 +0100 |
commit | 14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0 (patch) | |
tree | f99964071787e2f4542eb0d652ead7825554a221 /ale_linters/scss | |
parent | c2a0847f997f70cf529f46ad80e4d2d4283fd7b6 (diff) | |
download | ale-14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0.zip |
#427 Implement b:ale_warn_about_trailing_whitespace
Diffstat (limited to 'ale_linters/scss')
-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 |