summaryrefslogtreecommitdiff
path: root/ale_linters/sass
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-05-25 20:59:35 +0100
committerw0rp <devw0rp@gmail.com>2018-05-25 20:59:35 +0100
commit51a063be31e70046aaca767a02d25b0c5be9a692 (patch)
tree443be941543e2038af5943d6aa0f00120be815cc /ale_linters/sass
parent8d49da1f1cc0fadc31f479a05f16f0e423c226a3 (diff)
downloadale-51a063be31e70046aaca767a02d25b0c5be9a692.zip
Move the sasslint handlers to one location
Diffstat (limited to 'ale_linters/sass')
-rw-r--r--ale_linters/sass/sasslint.vim15
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',
\})