luacheck

static analyzer and a linter for the Lua language

Install

All systems
curl cmd.cat/luacheck.sh
Debian Debian
apt-get install lua-check
Ubuntu
apt-get install lua-check
image/svg+xml Kali Linux
apt-get install lua-check
Windows (WSL2)
sudo apt-get update sudo apt-get install lua-check
Raspbian
apt-get install lua-check

lua-check

static analyzer and a linter for the Lua language

Luacheck is a static analyzer and a linter for Lua which detects issues such as usage of undefined global variables, unused variables and values, etc. It is fairly configurable and can be used as a part of automated testing, manually from the command line or inside an editor.