diff options
Diffstat (limited to 'ale_linters/sass/sasslint.vim')
-rw-r--r-- | ale_linters/sass/sasslint.vim | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ale_linters/sass/sasslint.vim b/ale_linters/sass/sasslint.vim index aaaa3d2d..4df56dfd 100644 --- a/ale_linters/sass/sasslint.vim +++ b/ale_linters/sass/sasslint.vim @@ -1,18 +1,9 @@ -" Author: KabbAmine - https://github.com/KabbAmine, Ben Falconer -" <ben@falconers.me.uk> - -function! ale_linters#sass#sasslint#GetCommand(buffer) abort - return ale#path#BufferCdString(a:buffer) - \ . ale#Escape('sass-lint') - \ . ' -v' - \ . ' -q' - \ . ' -f compact' - \ . ' %t' -endfunction +" Author: KabbAmine - https://github.com/KabbAmine, +" Ben Falconer <ben@falconers.me.uk> call ale#linter#Define('sass', { \ 'name': 'sasslint', \ 'executable': 'sass-lint', -\ 'command_callback': 'ale_linters#sass#sasslint#GetCommand', +\ 'command_callback': 'ale#handlers#sasslint#GetCommand', \ 'callback': 'ale#handlers#css#HandleCSSLintFormat', \}) |