lint: add actionlint
This commit is contained in:
parent
9579bf8855
commit
82aa5e3ee0
1 changed files with 10 additions and 0 deletions
10
init.lua
10
init.lua
|
|
@ -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" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue