$ luarocks install luacheck
Luacheck is a command-line tool for linting and static analysis of Lua code. It is able to spot usage of undefined global variables, unused local variables and a few other typical problems within Lua programs.
Versions
Dependencies
argparse >= 0.6.0
lua >= 5.1
LuaFileSystem >= 1.6.3