Replace luacheck with selene

This commit is contained in:
ViViDboarder 2024-11-11 13:00:48 -08:00
parent f04748dc57
commit 90fe86fcc5

View File

@ -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":