2018-03-31 10:55:20 -04:00
|
|
|
" Author: KabbAmine - https://github.com/KabbAmine
|
|
|
|
" Description: Coffee for checking coffee files
|
|
|
|
|
|
|
|
function! ale_linters#coffee#coffee#GetExecutable(buffer) abort
|
|
|
|
return ale#path#ResolveLocalPath(
|
|
|
|
\ a:buffer,
|
|
|
|
\ 'node_modules/.bin/coffee',
|
|
|
|
\ 'coffee'
|
|
|
|
\)
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! ale_linters#coffee#coffee#GetCommand(buffer) abort
|
|
|
|
return ale_linters#coffee#coffee#GetExecutable(a:buffer)
|
|
|
|
\ . ' -cp -s'
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
call ale#linter#Define('coffee', {
|
|
|
|
\ 'name': 'coffee',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'executable': function('ale_linters#coffee#coffee#GetExecutable'),
|
|
|
|
\ 'command': function('ale_linters#coffee#coffee#GetCommand'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'output_stream': 'stderr',
|
|
|
|
\ 'callback': 'ale#handlers#gcc#HandleGCCFormat',
|
|
|
|
\})
|