summaryrefslogtreecommitdiff
path: root/ale_linters/eruby
diff options
context:
space:
mode:
authorJake Zimmerman <zimmerman.jake@gmail.com>2017-08-21 13:34:42 -0700
committerJake Zimmerman <zimmerman.jake@gmail.com>2017-08-21 13:51:42 -0700
commitb356d564483d68ffbd7cc11436d3484148cf39fb (patch)
treef3c445468151e036972aa12c605c691c8e9e9ea0 /ale_linters/eruby
parent5010ddc28fdced941925563bbc55f9219dfa4267 (diff)
downloadale-b356d564483d68ffbd7cc11436d3484148cf39fb.zip
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.
Diffstat (limited to 'ale_linters/eruby')
-rw-r--r--ale_linters/eruby/erubis.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/ale_linters/eruby/erubis.vim b/ale_linters/eruby/erubis.vim
new file mode 100644
index 00000000..be9332df
--- /dev/null
+++ b/ale_linters/eruby/erubis.vim
@@ -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',
+\})
+