diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/shellharden.lua | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -181,6 +181,7 @@ To view configured and available formatters, as well as to see the path to the l - [rubocop](https://github.com/rubocop/rubocop) - Ruby static code analyzer and formatter, based on the community Ruby style guide. - [rustfmt](https://github.com/rust-lang/rustfmt) - A tool for formatting rust code according to style guidelines. - [scalafmt](https://github.com/scalameta/scalafmt) - Code formatter for Scala. +- [shellharden](https://github.com/anordal/shellharden) - The corrective bash syntax highlighter - [shfmt](https://github.com/mvdan/sh) - A shell parser, formatter, and interpreter with `bash` support. - [sql_formatter](https://github.com/sql-formatter-org/sql-formatter) - A whitespace formatter for different query languages. - [stylua](https://github.com/JohnnyMorganz/StyLua) - An opinionated code formatter for Lua. diff --git a/lua/conform/formatters/shellharden.lua b/lua/conform/formatters/shellharden.lua new file mode 100644 index 0000000..c79063b --- /dev/null +++ b/lua/conform/formatters/shellharden.lua @@ -0,0 +1,9 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/anordal/shellharden", + description = "The corrective bash syntax highlighter", + }, + command = "shellharden", + args = { "--transform", "''" }, +} |