Provides linting and static analysis for Lua 5.1, Lua 5.2, Lua 5.3 and LuaJIT. A patch was required to allow luacheck and luacheck.lua to be symlinked into ${PREFIX}/bin, which I have submitted upstream. Checked with: portlint Tested with: Poudriere (head, amd64) Tested with: Poudriere (stable/11, amd64) Tested with: Poudriere (11.1-R, i386) [lwhsu] Tested with: Poudriere (10.4-R, amd64+i386) [lwhsu] Reviewed by: lwhsu Approved by: lwhsu (ports) Differential Revision: https://reviews.freebsd.org/D14467
8 lines
354 B
Text
8 lines
354 B
Text
Luacheck is a static analyzer and a linter for Lua. Luacheck detects various
|
|
issues such as usage of undefined global variables, unused variables and values,
|
|
accessing uninitialized variables, unreachable code and more.
|
|
|
|
Luacheck supports checking Lua files using syntax of Lua 5.1, Lua 5.2, Lua 5.3
|
|
and LuaJIT.
|
|
|
|
WWW: https://github.com/mpeterv/luacheck
|