lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello!

I'd like to announce release of Luacheck 0.10.0.

Luacheck[1] is a command line static analyzer for Lua which detects issues
like accidental globals, unused variables and values, etc. It can be installed
using LuaRocks (luarocks install luacheck) or manually using an installer
script.

Changes in 0.10.0 are mostly focused on utility:

* Caching of check results is implemented. Using --cache option makes Luacheck
store intermediate check results into a file and load results from it for
files that haven't changed since the last check. This improves performance
dramatically. Requires LuaFileSystem.
* Parallel checking enabled using --jobs/-j option. Improves performance
significantly on multicore machines. This feature requires LuaLanes.
* Syntax error message and location are now reported. Consequently, when using
Luacheck plugin for an editor, syntax errors are now highlighted even without
additional syntax checking plugin.
* Shadowed upvalues are now detected.
* Added install.lua script which installs Luacheck. A working Lua interpreter
is still required, but the script ensures that it will find Luacheck
modules automatically.
* Less important changes can be found in release description on GutHub[2].

Any feedback is welcome.

Regards,

Peter

[1] https://github.com/mpeterv/luacheck#overview
[2] https://github.com/mpeterv/luacheck/releases