Skip to content

Releases: mpeterv/luacheck

0.6.0

01 Nov 15:10
Compare
Choose a tag to compare
  • 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

06 Sep 13:44
Compare
Choose a tag to compare
  • 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

25 Aug 11:01
Compare
Choose a tag to compare
  • Updated to argparse 0.3.0

0.4.0

31 May 10:36
Compare
Choose a tag to compare
  • Unused values(e.g. local a = expr1; ... a = expr2) are now detected;
  • In CLI, rockspecs(arguments ending with .rockspec) now expand into list of related .lua files;
  • Unused varargs are now detected;
  • Some minor fixes and CLI improvements.

0.3.0

25 Apr 17:34
Compare
Choose a tag to compare
  • 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 with 0.
  • 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

05 Apr 11:57
Compare
Choose a tag to compare
  • 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.

0.1.0

25 Mar 16:57
Compare
Choose a tag to compare
0.1.0 release