aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorEvan <yif.wang@icloud.com>2022-07-24 15:57:47 -0700
committerGitHub <noreply@github.com>2022-07-25 00:57:47 +0200
commit6747bf7179736b848eda97604cea423a55e4f8fe (patch)
tree04cd632e3a26b0617a5869d8bd8b9dcf357439a2 /lua
parentfeat: add flake8 (#123) (diff)
downloadmason-6747bf7179736b848eda97604cea423a55e4f8fe.tar
mason-6747bf7179736b848eda97604cea423a55e4f8fe.tar.gz
mason-6747bf7179736b848eda97604cea423a55e4f8fe.tar.bz2
mason-6747bf7179736b848eda97604cea423a55e4f8fe.tar.lz
mason-6747bf7179736b848eda97604cea423a55e4f8fe.tar.xz
mason-6747bf7179736b848eda97604cea423a55e4f8fe.tar.zst
mason-6747bf7179736b848eda97604cea423a55e4f8fe.zip
feat(linter): add codespell (#125)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-registry/codespell/init.lua11
-rw-r--r--lua/mason-registry/index.lua1
2 files changed, 12 insertions, 0 deletions
diff --git a/lua/mason-registry/codespell/init.lua b/lua/mason-registry/codespell/init.lua
new file mode 100644
index 00000000..73639783
--- /dev/null
+++ b/lua/mason-registry/codespell/init.lua
@@ -0,0 +1,11 @@
+local Pkg = require "mason-core.package"
+local pip3 = require "mason-core.managers.pip3"
+
+return Pkg.new {
+ name = "codespell",
+ desc = [[check code for common misspellings]],
+ homepage = "https://github.com/codespell-project/codespell",
+ languages = {},
+ categories = { Pkg.Cat.Linter },
+ install = pip3.packages { "codespell", bin = { "codespell" } },
+}
diff --git a/lua/mason-registry/index.lua b/lua/mason-registry/index.lua
index e773c10b..4070031b 100644
--- a/lua/mason-registry/index.lua
+++ b/lua/mason-registry/index.lua
@@ -20,6 +20,7 @@ return {
["cmake-language-server"] = "mason-registry.cmake-language-server",
codelldb = "mason-registry.codelldb",
codeql = "mason-registry.codeql",
+ codespell = "mason-registry.codespell",
cpplint = "mason-registry.cpplint",
cpptools = "mason-registry.cpptools",
crystalline = "mason-registry.crystalline",