
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.