Add erubis linter

This linter works largely the same as the existing `erubylint` linter,
except it works with `erubis` instead of `erb` as the driving command.
This commit is contained in:
Jake Zimmerman
2017-08-21 13:34:42 -07:00
parent 5010ddc28f
commit b356d56448
4 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
" Author: Jake Zimmerman <jake@zimmerman.io>
" Description: eruby checker using `erubis`, instead of `erb`
call ale#linter#Define('eruby', {
\ 'name': 'erubis',
\ 'executable': 'erubis',
\ 'output_stream': 'stderr',
\ 'command': 'erubis -x %t | ruby -c',
\ 'callback': 'ale#handlers#ruby#HandleSyntaxErrors',
\})