ale/ale_linters/sass/sasslint.vim

19 lines
527 B
VimL
Raw Normal View History

" 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
2016-10-03 14:02:21 -04:00
call ale#linter#Define('sass', {
\ 'name': 'sasslint',
2016-10-03 14:02:21 -04:00
\ 'executable': 'sass-lint',
\ 'command_callback': 'ale_linters#sass#sasslint#GetCommand',
\ 'callback': 'ale#handlers#css#HandleCSSLintFormat',
2016-10-03 14:02:21 -04:00
\})