mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-08 20:43:31 +08:00
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:
11
ale_linters/eruby/erubis.vim
Normal file
11
ale_linters/eruby/erubis.vim
Normal 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',
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user