[eruby] Add GetCommand to erb linter

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.
This commit is contained in:
Eddie Lebow committed 2017-11-12 23:33:30 -05:00
1 parent e9e29e003c
commit ea7f68226e
3 files changed
+38 -3

No files matched your search

Whitespace-only changes.