Add support for erblint (#3931)

* support for erblint

* fix tests

* test for handler

* wrong names

* typo

* doc layout

* CI failed?
This commit is contained in:
Roeland
2021-10-09 07:33:07 +02:00
committed by GitHub
parent 42a6e039cb
commit 1ee7580557
7 changed files with 171 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ ALE Eruby Integration *ale-eruby-options*
There are four linters for `eruby` files:
- `erb`
- `erblint`
- `erubis`
- `erubi`
- `ruumba`
@@ -13,6 +14,26 @@ default parser in Rails between 3.0 and 5.1. `erubi` is the default in Rails
5.1 and later. `ruumba` can extract Ruby from eruby files and run rubocop on
the result. To selectively enable a subset, see |g:ale_linters|.
===============================================================================
erblint *ale-eruby-erblint*
g:ale_eruby_erblint_executable *g:ale_eruby_erblint_executable*
*b:ale_eruby_erblint_executable*
Type: |String|
Default: `'erblint'`
Override the invoked erblint binary. This is useful for running erblint
from binstubs or a bundle.
g:ale_eruby_erblint_options *g:ale_ruby_erblint_options*
*b:ale_ruby_erblint_options*
Type: |String|
Default: `''`
This variable can be change to modify flags given to erblint.
===============================================================================
ruumba *ale-eruby-ruumba*

View File

@@ -151,6 +151,7 @@ Notes:
* `elm-make`
* Erb
* `erb`
* `erblint`
* `erubi`
* `erubis`
* `ruumba`

View File

@@ -2729,6 +2729,7 @@ documented in additional help files.
erlfmt................................|ale-erlang-erlfmt|
syntaxerl.............................|ale-erlang-syntaxerl|
eruby...................................|ale-eruby-options|
erblint...............................|ale-eruby-erblint|
ruumba................................|ale-eruby-ruumba|
fish....................................|ale-fish-options|
fish_indent...........................|ale-fish-fish_indent|