summaryrefslogtreecommitdiff
path: root/ale_linters/scss/sasslint.vim
blob: f607500191c04890d20cacf518244c6945bd67a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Author: KabbAmine - https://github.com/KabbAmine, Ben Falconer
" <ben@falconers.me.uk>

function! ale_linters#scss#sasslint#GetCommand(buffer) abort
    return ale#path#BufferCdString(a:buffer)
    \   . ale#Escape('sass-lint')
    \   . ' -v'
    \   . ' -q'
    \   . ' -f compact'
    \   . ' %t'
endfunction

call ale#linter#Define('scss', {
\   'name': 'sasslint',
\   'executable': 'sass-lint',
\   'command_callback': 'ale_linters#scss#sasslint#GetCommand',
\   'callback': 'ale#handlers#css#HandleCSSLintFormat',
\})