diff --git a/README.md b/README.md index 740cb6b3..f662cba5 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,7 @@ clang-format supports. - [luacheck](https://github.com/mpeterv/luacheck) - [lua-ls](https://github.com/LuaLS/lua-language-server) +- [selene](https://github.com/Kampfkarren/selene) - [stylua](https://github.com/JohnnyMorganz/StyLua) ### HTML diff --git a/modules/hooks.nix b/modules/hooks.nix index b5abb038..c102706e 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -3714,6 +3714,13 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm files = "\\.rs$"; pass_filenames = false; }; + selene = { + name = "selene"; + description = "A blazing-fast modern Lua linter written in Rust."; + types = [ "lua" ]; + package = tools.selene; + entry = "${hooks.selene.package}/bin/selene"; + }; shellcheck = { name = "shellcheck"; diff --git a/nix/tools.nix b/nix/tools.nix index 4605140e..81912c35 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -68,6 +68,7 @@ , reuse , ruff ? null , rustfmt +, selene , shellcheck , bats , shfmt @@ -158,6 +159,7 @@ in ripsecrets ruff rustfmt + selene shellcheck shfmt statix