From 37d036704a100ef6e6457be45b4dfc2f8e429572 Mon Sep 17 00:00:00 2001 From: Kerem Bozdas Date: Sat, 30 Sep 2023 20:49:34 +0300 Subject: feat: add standardrb (#91) * feat: add standardrb formatter * [docgen] Update docs skip-checks: true --------- Co-authored-by: Github Actions --- lua/conform/formatters/standardrb.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/conform/formatters/standardrb.lua (limited to 'lua/conform') 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 }, +} -- cgit v1.2.3-70-g09d2