The intervening changes are many, with new checks and a switch to luarocks as upstream. This intermediate version also contains some Lua 5.4 support. Note that Lua 5.4 attributes are currently parsed, but ignored. argparse is no longer bundled with luacheck, so we'll grab argparse from devel/lua-argparse. The build system in luacheck got removed in favor of just using luarocks. This is currently incompatible with how ports wants to work, so I've changed it to the simpler approach that was previously advised to just copy the src/ files over and now installing a script from FILESDIR that matches roughly what we were ending up with before to get the correct package.path. Miscellaneous indentation fixes included.
9 lines
355 B
Plaintext
9 lines
355 B
Plaintext
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/luarocks/luacheck
|