1
0
Fork 0

lint: add actionlint

This commit is contained in:
Felipe 2024-07-19 15:17:41 -04:00
parent 9579bf8855
commit 82aa5e3ee0
Signed by: pitbuster
SSH key fingerprint: SHA256:OM3HeVSA96adfy2Gi8OhZkQBY67P88LoJUwkeVoTArQ

View file

@ -436,10 +436,20 @@ lint.linters.sqlfluff.args = {
lint.linters.yamllint.args = { lint.linters.yamllint.args = {
args = { "--format=parsable", "-d relaxed" }, args = { "--format=parsable", "-d relaxed" },
} }
-- actionlint --
---- Set custom filetype to not lint everythin
--- https://github.com/mfussenegger/nvim-lint/issues/591#issuecomment-2142162704
vim.filetype.add({
pattern = {
['.*/.github/workflows/.*%.yml'] = 'yaml.ghaction',
['.*/.github/workflows/.*%.yaml'] = 'yaml.ghaction',
},
})
local linters = { local linters = {
bash = { "shellcheck" }, bash = { "shellcheck" },
dockerfile = { "hadolint" }, dockerfile = { "hadolint" },
ghaction = { "actionlint" },
go = { "golangcilint" }, go = { "golangcilint" },
python = { "flake8" }, python = { "flake8" },
-- rust = { "clippy" }, -- rust = { "clippy" },