Neovim conform and other editors such as Zed work better when able to pipe a file directly to stdin and get the formatted output via stdout.
The current reporters inject report data to the formatted file written to stdout. This PR adds a quiet reporter similar to rubocop's quiet format and writes all report output to stderr.
Neovim conform and other editors such as Zed work better when able to pipe a file directly to stdin and get the formatted output via stdout.
The current reporters inject report data to the formatted file written to stdout. This PR adds a
quiet
reporter similar to rubocop's quiet format and writes all report output to stderr.Addresses comments: https://github.com/Shopify/erb-lint/issues/225#issuecomment-2147731814, https://github.com/Shopify/erb-lint/issues/225#issuecomment-2192203785
The report output is still available via stderr but can also now be disabled with the ruby
-W0
flag to suppress the warnings:This can be run now as follows in a
conform.nvim
configuration: