Releases: mpeterv/luacheck
Releases · mpeterv/luacheck
0.6.0
- Removed dependency on MetaLua parser, replaced it with a custom one.
- Luacheck can now check programs which use syntax introduced in Lua 5.2, Lua 5.3 and LuaJIT 2.0.
- Luacheck is now about 4 times faster.
- Luacheck now exits with an error if it couldn't load a config due to an I/O, syntax, runtime or validation error.
- Some minor changes in reporting and detecting unused values.
0.5.0
- Added an option to disable colourization of output;
- Changed the interface of
luacheckmodule in breaking ways; - Added an option to allow implicit global variable definition;
- Filter out warnings about redefined
_; --globals,--ignoreand--onlycan now be used several times;- Passing
-as an argument now checks stdin; - Passing a directory as an argument checks all
.luafiles inside it; - Added config loading;
- Added
--stdoption, adding globals via--globalsnow does not require passing a dash; - Added
--new-globalsoption; - Changed what
-qqand-qqqdo; - Improved docs.
0.4.1
0.4.0
0.3.0
- luacheck is now _ENV-aware: "globals" inside chunks with custom
_ENVare ignored, but their presence marks the_ENVvariable as used; accessing the outermost("default")_ENVis permitted, too. - In
--globalsoption of the CLI hyphen now expands to all standard global variables; - New
-c/--compatflag defines some additional globals for Lua 5.1/5.2 compatibility(e.g.setfenv). - New
-l/--limitoption allows setting a limit of warnings. If the limit is not exceeded, the CLI exits with0. - The
-q/--quietflag now can be used several times(-q/-qq/-qqq) to make the CLI more or less quiet. - Other small improvements.
0.2.0
- Command-line interface now prints per-file reports as they are produced instead of waiting for all files to be checked;
- luacheck now recognizes different types of variables(usual locals, function arguments and loop variables) and reports them accordingly;
- luacheck now distinguishes accessing global variables from setting them;
- In command-line interface
-qswitch makes luacheck only print total number of warnings instead of suppressing output completely.