diff options
author | Matthias Günther <matze@wikimatze.de> | 2017-04-25 19:38:02 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-04-25 18:38:02 +0100 |
commit | c55064881db1543aa6dbbf2490623064daa6b935 (patch) | |
tree | c6d7012272a33ccd963c74021f2fb9e9c52e6dba /ale_linters/eruby | |
parent | a25b55b954730b4cce2af358f56d3ba2f663ebf5 (diff) | |
download | ale-c55064881db1543aa6dbbf2490623064daa6b935.zip |
Add erb linter (#497)
* Add eruby linter
* Update README with erb linter
* Fix example and contributions
* Remove trailing newline
* Fix for Vimscript style guide
* Eruby-linter: codereview with @w0rp
- read from stderro output_stream
* Eruby-linter: codereview => add handler for ruby
* Eruby-linter: codereview
- eruby and ruby lint use the same ruby-handler (removes
duplicated handling logic)
* Eruby-linter: try to fix tests
Diffstat (limited to 'ale_linters/eruby')
-rw-r--r-- | ale_linters/eruby/erubylint.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ale_linters/eruby/erubylint.vim b/ale_linters/eruby/erubylint.vim new file mode 100644 index 00000000..2ff03c32 --- /dev/null +++ b/ale_linters/eruby/erubylint.vim @@ -0,0 +1,11 @@ +" Author: Matthias Guenther - https://wikimatze.de +" Description: erb-lint for eruby/erb files + +call ale#linter#Define('eruby', { +\ 'name': 'erubylint', +\ 'executable': 'erb', +\ 'output_stream': 'stderr', +\ 'command': 'erb -P -x %t | ruby -c', +\ 'callback': 'ale#handlers#ruby#HandleSyntaxErrors', +\}) + |