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 | |
parent | 3f8927532bc8ce4fc4b5b75eab1bf8f1fc83f6b9 (diff) |
feat: add standardrb (#91)
* feat: add standardrb formatter
* [docgen] Update docs
skip-checks: true
---------
Co-authored-by: Github Actions <actions@github>
-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 }, +} |