From 90fe86fcc5f28fa85409a9b3900ffb4b9362fe49 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 11 Nov 2024 13:00:48 -0800 Subject: [PATCH] Replace luacheck with selene --- install-helpers.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/install-helpers.py b/install-helpers.py index 9910d54..5e15730 100755 --- a/install-helpers.py +++ b/install-helpers.py @@ -189,18 +189,18 @@ def install_linters(langs: set[Language]): "golangci-lint-{version}-{system}-{arch}.tar.gz", ) if Language.LUA in langs: - if not maybe_run("lua", "-e", "require('lfs')"): - maybe_run("luarocks", "--local", "install", "luafilesystem") - maybe_run("luarocks", "--local", "install", "luacheck", "1.1.0") - maybe_release_gitter(selene=[ - "--git-url", - "https://github.com/Kampfkarren/selene", - "--exec", - os.path.expanduser("chmod +x ~/bin/selene"), - "--extract-files", "selene", - "selene-{version}-{system}.zip", - os.path.expanduser("~/bin"), - ]) + maybe_release_gitter( + selene=[ + "--git-url", + "https://github.com/Kampfkarren/selene", + "--exec", + os.path.expanduser("chmod +x ~/bin/selene"), + "--extract-files", + "selene", + "selene-{version}-{system}.zip", + os.path.expanduser("~/bin"), + ] + ) if Language.DOCKER in langs: hadolint_arm64 = "arm64" if sys.platform == "darwin":