summaryrefslogtreecommitdiff
path: root/ale_linters/eruby
AgeCommit message (Collapse)Author
2019-08-13Move ale#handlers#ruby#EscapeExecutable to ale#ruby#EscapeExecutableEddie Lebow
This function is generally applicable to Ruby, not just handling linter output.
2019-04-07#2132 - Replace command_chain and chain_with with ale#command#Runw0rp
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2018-11-04Add initial support for ruumba in eruby files.Andrew Clemons
Ruumba provides RuboCop linting for ERB templates. https://github.com/ericqweinstein/ruumba
2018-01-24Merge pull request #1157 from elebow/eruby-add-erubi-linterw0rp
[eruby] Add erubi linter
2018-01-16[eruby] Add erubi linterEddie Lebow
Erubi is yet another parser for eRuby. This is the default parser in Rails as of version 5.1. It supports some additional syntax with similar behavior to Rails' extensions to the language, though incompatible. Rails currently still recommends their own syntax, so GetCommand still has to do the translation introduced in https://github.com/w0rp/ale/pull/1114 . Erubi does not supply an executable—It is intended to be invoked only from within a Ruby program. In this case, a one-liner on the command line.
2017-12-13Fix erb linter for puppet style erb scriptsJelte Fennema
2017-11-21Remove a Unicode character Vint complains aboutw0rp
2017-11-16erb, erubis: Redirect file into first command.Eddie Lebow
The previous version relied on a zsh-specific behavior where `<filename` after a pipe could redirect to the first command. This is the standard way to do it.
2017-11-12[eruby] Add GetCommand to erubis linterEddie Lebow
GetCommand conditionally adds a filter (implemented as inline Ruby code in the command line) to transform some of the problematic Rails-specific eRuby syntax. Specifically, <%= tags are replaced with <%. This does not reduce the effectiveness of the linter, because the transformed code is still evaluated. This solution was suggested by @rgo at https://github.com/w0rp/ale/issues/580#issuecomment-337676607.
2017-11-12[eruby] Add GetCommand to erb linterEddie Lebow
GetCommand conditionally adds a filter (implemented as inline Ruby code in the command line) to transform some of the problematic Rails-specific eRuby syntax. Specifically, <%= tags are replaced with <%. This does not reduce the effectiveness of the linter, because the transformed code is still evaluated. This solution was suggested by @rgo at https://github.com/w0rp/ale/issues/580#issuecomment-337676607.
2017-11-12[eruby] Rename `erubylint` → `erb` to match tool nameEddie Lebow
2017-08-21Add erubis linterJake Zimmerman
This linter works largely the same as the existing `erubylint` linter, except it works with `erubis` instead of `erb` as the driving command.
2017-04-25Add erb linter (#497)Matthias Günther
* 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