diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-15 08:37:43 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-15 08:37:43 -0700 |
commit | 508ec8a899e039a56f9110011125ab56284db1fa (patch) | |
tree | 62d2a910f0c6a9118b51d8952533ef4ad51ec33d /lua | |
parent | fbb18a5b92e2f11aaaef379d74d4a1132a138cb3 (diff) |
feat: add shellcheck (#44)
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, +} |