diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/standardrb.lua | 17 |
3 files changed, 19 insertions, 0 deletions
@@ -221,6 +221,7 @@ To view configured and available formatters, as well as to see the log file, run - [sql_formatter](https://github.com/sql-formatter-org/sql-formatter) - A whitespace formatter for different query languages. - [squeeze_blanks](https://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html#cat-invocation) - Squeeze repeated blank lines into a single blank line via `cat -s`. - [standardjs](https://standardjs.com) - JavaScript Standard style guide, linter, and formatter. +- [standardrb](https://github.com/standardrb/standard) - Ruby's bikeshed-proof linter and formatter - [stylelint](https://github.com/stylelint/stylelint) - A mighty CSS linter that helps you avoid errors and enforce conventions. - [stylua](https://github.com/JohnnyMorganz/StyLua) - An opinionated code formatter for Lua. - [swift_format](https://github.com/apple/swift-format) - Swift formatter from apple. Requires building from source with `swift build`. diff --git a/doc/conform.txt b/doc/conform.txt index c30c28f..7b92714 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -235,6 +235,7 @@ FORMATTERS *conform-formatter `squeeze_blanks` - Squeeze repeated blank lines into a single blank line via `cat -s`. `standardjs` - JavaScript Standard style guide, linter, and formatter. +`standardrb` - Ruby's bikeshed-proof linter and formatter `stylelint` - A mighty CSS linter that helps you avoid errors and enforce conventions. `stylua` - An opinionated code formatter for Lua. 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 }, +} |