From 0219648cd9a2bafc13fda64903e49fda5db0016b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20L=C3=A9vigne?= Date: Fri, 20 Oct 2023 17:27:57 +0200 Subject: [PATCH] feat: add puppet-lint formatter (#153) --- lua/conform/formatters/puppet-lint.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/conform/formatters/puppet-lint.lua diff --git a/lua/conform/formatters/puppet-lint.lua b/lua/conform/formatters/puppet-lint.lua new file mode 100644 index 00000000..6cc231e9 --- /dev/null +++ b/lua/conform/formatters/puppet-lint.lua @@ -0,0 +1,11 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/puppetlabs/puppet-lint", + description = "Check that your Puppet manifests conform to the style guide.", + }, + command = "puppet-lint", + args = { "--fix", "$FILENAME" }, + stdin = false, + exit_codes = { 0, 1 }, +}