summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-08-22 10:33:08 +0100
committerGitHub <noreply@github.com>2017-08-22 10:33:08 +0100
commit9d3bda4441a293eac47050428fee7fb4879547d7 (patch)
treee8c30933ad0cd844965a556025781b7c2cb9d82e /ale_linters
parenta3299bf03a405207347d8d06c28b65af1e0a5092 (diff)
parentb356d564483d68ffbd7cc11436d3484148cf39fb (diff)
downloadale-9d3bda4441a293eac47050428fee7fb4879547d7.zip
Merge pull request #865 from jez/erubis-linter
Add erubis linter
Diffstat (limited to 'ale_linters')
-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',
+\})
+