aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/standardrb.lua
diff options
context:
space:
mode:
authorKerem Bozdas <krmbzds.github@gmail.com>2023-09-30 20:49:34 +0300
committerGitHub <noreply@github.com>2023-09-30 10:49:34 -0700
commit37d036704a100ef6e6457be45b4dfc2f8e429572 (patch)
tree1f06ca796e11402c8c34b9e91d87b6a343ddde63 /lua/conform/formatters/standardrb.lua
parent3f8927532bc8ce4fc4b5b75eab1bf8f1fc83f6b9 (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/conform/formatters/standardrb.lua')
-rw-r--r--lua/conform/formatters/standardrb.lua17
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 },
+}