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
luacheck
module in breaking ways; - Added an option to allow implicit global variable definition;
- Filter out warnings about redefined
_
; --globals
,--ignore
and--only
can now be used several times;- Passing
-
as an argument now checks stdin; - Passing a directory as an argument checks all
.lua
files inside it; - Added config loading;
- Added
--std
option, adding globals via--globals
now does not require passing a dash; - Added
--new-globals
option; - Changed what
-qq
and-qqq
do; - Improved docs.
0.4.1
0.4.0
0.3.0
- luacheck is now _ENV-aware: "globals" inside chunks with custom
_ENV
are ignored, but their presence marks the_ENV
variable as used; accessing the outermost("default")_ENV
is permitted, too. - In
--globals
option of the CLI hyphen now expands to all standard global variables; - New
-c
/--compat
flag defines some additional globals for Lua 5.1/5.2 compatibility(e.g.setfenv
). - New
-l
/--limit
option allows setting a limit of warnings. If the limit is not exceeded, the CLI exits with0
. - The
-q
/--quiet
flag 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
-q
switch makes luacheck only print total number of warnings instead of suppressing output completely.