From 508ec8a899e039a56f9110011125ab56284db1fa Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Fri, 15 Sep 2023 08:37:43 -0700 Subject: feat: add shellcheck (#44) --- lua/conform/formatters/shellcheck.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/shellcheck.lua (limited to 'lua/conform/formatters/shellcheck.lua') 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, +} -- cgit v1.2.3-70-g09d2