nvimtools / none-ls.nvim

null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
The Unlicense
2.39k stars 69 forks source link

fix(builtins): prevent erb_lint false header match #153

Closed jbigler closed 2 months ago

jbigler commented 2 months ago

An output:match is performed to detect the header of the linter output to exclude it from being injected into the buffer. However, it matches on ==, which is also a legitimate Ruby operator. When == is encountered in the code, it causes the buffer up to and including that operator to be deleted.

Because the linter output uses 16 = symbols in its header, adding an additional == to the match will still work while not causing false matches with legitimate uses of ==.