diff options
author | Kerem Bozdas <krmbzds.github@gmail.com> | 2023-09-30 20:49:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 10:49:34 -0700 |
commit | 37d036704a100ef6e6457be45b4dfc2f8e429572 (patch) | |
tree | 1f06ca796e11402c8c34b9e91d87b6a343ddde63 /lua | |
parent | 3f8927532bc8ce4fc4b5b75eab1bf8f1fc83f6b9 (diff) |
feat: add standardrb (#91)
* feat: add standardrb formatter
* [docgen] Update docs
skip-checks: true
---------
Co-authored-by: Github Actions <actions@github>
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conform/formatters/standardrb.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/conform/formatters/standardrb.lua b/lua/conform/formatters/standardrb.lua new file mode 100644 index 0000000..1a69cd6 --- /dev/null +++ b/lua/conform/formatters/standardrb.lua @@ -0,0 +1,17 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/standardrb/standard", + description = "Ruby's bikeshed-proof linter and formatter", + }, + command = "standardrb", + args = { + "--fix", + "-f", + "quiet", + "--stderr", + "--stdin", + "$FILENAME", + }, + exit_codes = { 0, 1 }, +} |