- Joined
- Nov 7, 2014
- Messages
- 571
Luacheck or: How I Learned to Stop Worrying and Use Lua
Luacheck is a tool for linting and static analysis of Lua code. It can detect a lot of errors at "map build time".
I find the "accessing of undefined global variables" (aka. typos) errors the most helpful. Luacheck can be configured to ignore "new globals" which one should probably do if they want to use Blizzards ~5K of predefined "stuff" (see the attached example 'luacheck.config' file).
Luacheck is a tool for linting and static analysis of Lua code. It can detect a lot of errors at "map build time".
I find the "accessing of undefined global variables" (aka. typos) errors the most helpful. Luacheck can be configured to ignore "new globals" which one should probably do if they want to use Blizzards ~5K of predefined "stuff" (see the attached example 'luacheck.config' file).