Skip to content

Commit

Permalink
feat: add shellharden (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhoIsSethDaniel authored Aug 30, 2023
1 parent 52d17de commit 863fb46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/shellharden.lua
Original file line number Diff line number Diff line change
@@ -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", "''" },
}

0 comments on commit 863fb46

Please sign in to comment.