Skip to content

Commit

Permalink
builtins/erblint: update cmd to erb_lint (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigler authored Oct 17, 2024
1 parent 6bdd9b3 commit 70f4b0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ local sources = { null_ls.builtins.diagnostics.erb_lint }

- Filetypes: `{ "eruby" }`
- Method: `diagnostics`
- Command: `erblint`
- Command: `erb_lint`
- Args: `{ "--format", "json", "--stdin", "$FILENAME" }`

### [fish](https://github.com/fish-shell/fish-shell)
Expand Down Expand Up @@ -2444,7 +2444,7 @@ local sources = { null_ls.builtins.formatting.erb_lint }

- Filetypes: `{ "eruby" }`
- Method: `formatting`
- Command: `erblint`
- Command: `erb_lint`
- Args: `{ "--autocorrect", "--stdin", "$FILENAME" }`

### [erlfmt](https://github.com/WhatsApp/erlfmt)
Expand Down
2 changes: 1 addition & 1 deletion lua/null-ls/builtins/diagnostics/erb_lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ return h.make_builtin({
method = DIAGNOSTICS,
filetypes = { "eruby" },
generator_opts = {
command = "erblint",
command = "erb_lint",
args = { "--format", "json", "--stdin", "$FILENAME" },
to_stdin = true,
format = "json",
Expand Down
2 changes: 1 addition & 1 deletion lua/null-ls/builtins/formatting/erb_lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ return h.make_builtin({
filetypes = { "eruby" },
factory = h.generator_factory,
generator_opts = {
command = "erblint",
command = "erb_lint",
args = { "--autocorrect", "--stdin", "$FILENAME" },
ignore_stderr = true,
to_stdin = true,
Expand Down

0 comments on commit 70f4b0f

Please sign in to comment.