Skip to content

Commit

Permalink
fix(nvim-lint): add/correct some linters
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 5d6c844978b0b7a8acfc607cbfdab3dfb63d8392
Author: Leonardo Mora <[email protected]>
Date:   Mon Jul 8 12:09:01 2024 -0600

    feat(nvim-lint): add snyk and htmlhint

    See: rshkarin/mason-nvim-lint#8

commit 984d655b220a3b235b81fcbcc6c3eb0c3d9a0e0c
Author: Leonardo Mora <[email protected]>
Date:   Mon Jul 8 11:57:02 2024 -0600

    fix(nvim-lint): correct ansible-lint mapping

    See: rshkarin/mason-nvim-lint#9

commit 806b42fa650f97a8bac445bd727552261dee81ec
Author: Leonardo Mora <[email protected]>
Date:   Mon Jul 8 11:55:03 2024 -0600

    feat(nvim-lint): add checkmake

    Linter for Makefiles. See: rshkarin/mason-nvim-lint#10

commit a376b63f49fd02f3502b006108fc373b1efb5611
Author: Leonardo Mora <[email protected]>
Date:   Sun Jul 7 19:41:15 2024 -0600

    refactor(formatters): better name
  • Loading branch information
LeonardoMor committed Jul 8, 2024
1 parent 6381d40 commit 0bd3eba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/nvchad/mason/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ local get_pkgs = function(data)
if conform_exists then
local formatters = conform.list_all_formatters()

local formatters_names = vim.tbl_map(function(formatter)
local formatter_names = vim.tbl_map(function(formatter)
return formatter.name
end, formatters)

tools = vim.list_extend(tools, formatters_names)
tools = vim.list_extend(tools, formatter_names)
end

local lint_exists, lint = pcall(require, "lint")
Expand Down
5 changes: 4 additions & 1 deletion lua/nvchad/mason/names.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ return {

-- nvim-lint
actionlint = "actionlint",
ansible_lint = "ansible_lint",
ansible_lint = "ansible-lint",
buf_lint = "buf",
["cfn_lint"] = "cfn-lint",
checkstyle = "checkstyle",
Expand All @@ -346,6 +346,7 @@ return {
gdlint = "gdtoolkit",
golangcilint = "golangci-lint",
hadolint = "hadolint",
htmlhint = "htmlhint",
jsonlint = "jsonlint",
luacheck = "luacheck",
mypy = "mypy",
Expand All @@ -358,11 +359,13 @@ return {
revive = "revive",
rstcheck = "rstcheck",
selene = "selene",
snyk = "snyk",
solhint = "solhint",
tfsec = "tfsec",
trivy = "trivy",
vale = "vale",
vint = "vint",
vulture = "vulture",
yamllint = "yamllint",
checkmake = "checkmake",
}

0 comments on commit 0bd3eba

Please sign in to comment.