aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform')
-rw-r--r--lua/conform/formatters/shellcheck.lua10
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,
+}