diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conform/formatters/shellcheck.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/shellcheck.lua b/lua/conform/formatters/shellcheck.lua new file mode 100644 index 0000000..3ceb7a5 --- /dev/null +++ b/lua/conform/formatters/shellcheck.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/koalaman/shellcheck", + description = "A static analysis tool for shell scripts.", + }, + command = "shellcheck", + args = "$FILENAME --format=diff | patch -p1 $FILENAME", + stdin = false, +} |