Skip to content

Commit

Permalink
feat(registry): add cmake-lint (williamboman#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-babu authored Mar 5, 2023
1 parent 712f137 commit dd9ef3f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lua/mason-registry/index/cmake-lint/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local Pkg = require "mason-core.package"
local pip3 = require "mason-core.managers.pip3"

return Pkg.new {
name = "cmake-lint",
desc = [[cmakelint parses CMake files and reports style issues]],
homepage = "https://github.com/cmake-lint/cmake-lint",
languages = { Pkg.Lang.Python },
categories = { Pkg.Cat.Linter },
install = pip3.packages { "cmakelint", bin = { "cmakelint" } },
}
1 change: 1 addition & 0 deletions lua/mason-registry/index/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ return {
["clarity-lsp"] = "mason-registry.index.clarity-lsp",
["clojure-lsp"] = "mason-registry.index.clojure-lsp",
["cmake-language-server"] = "mason-registry.index.cmake-language-server",
["cmake-lint"] = "mason-registry.index.cmake-lint",
cmakelang = "mason-registry.index.cmakelang",
codelldb = "mason-registry.index.codelldb",
codeql = "mason-registry.index.codeql",
Expand Down
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ return {
protobuf = { "buf", "buf-language-server", "protolint" },
puppet = { "puppet-editor-services" },
purescript = { "purescript-language-server" },
python = { "autoflake", "autopep8", "black", "blackd-client", "blue", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylama", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "reorder-python-imports", "rstcheck", "ruff", "ruff-lsp", "semgrep", "sourcery", "usort", "vulture", "yapf" },
python = { "autoflake", "autopep8", "black", "blackd-client", "blue", "cmake-lint", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylama", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "reorder-python-imports", "rstcheck", "ruff", "ruff-lsp", "semgrep", "sourcery", "usort", "vulture", "yapf" },
r = { "r-languageserver" },
raku = { "raku-navigator" },
reason = { "reason-language-server" },
Expand Down

0 comments on commit dd9ef3f

Please sign in to comment.