Skip to content
76bb567
Compare
Choose a tag to compare

Breaking changes:

  • Removed --no-inline CLI option and inline config option, inline options are now always enabled.
  • Inline comments are now supposed to be only in short comments but not long ones.
  • Installer script (install.lua) is removed. Luacheck can still be installed manually by recursively co…
Compare
Choose a tag to compare

Improvements:

  • Reduced amount of RAM used when checking a large number of files.
Compare
Choose a tag to compare

New features and improvements:

  • Added detection of cyclomatic complexity, with warnings emitted for
    functions with complexity higher than a configurable limit; disabled
    by default (#141).
  • Added a built-in formatter printing warnings and errors in a format
    understood by MSBuild/Visual Studio if lu…
Compare
Choose a tag to compare

Fixes:

  • Fixed error when an upvalue is accessed from an unreachable closure (#139).
  • Fixed unreachable code and accessing uninitialized variables not being detected inside unreachable functions.
Compare
Choose a tag to compare

Fixes:

  • Added missing definition of ngx.ERROR constant to ngx_lua std (#123).
  • Fixed unused values and initialized accesses not being reported when the access is in a closure defined in code path incompatible with the value assignment (#126).
Compare
Choose a tag to compare

New features and improvements:

  • Column range for line is too long warning now starts at the first
    character beyond the length limit instead of the very first character
    of the line (#117).
  • Error messages for invalid inline options are now a bit better, including
    reason why an inline option invocat…
Compare
Choose a tag to compare

Breaking changes:

  • luacheck now exits with 2 instead of 1 if there are syntax errors
    or invalid inline options present. It now exits with 3 instead of
    2 if I/O errors are present. It now exits with 4 instead of 3
    on a critical error (#94).

New features and improvements:

  • If project-specific .lua…
Compare
Choose a tag to compare

Miscellaneous:

  • Added warning code for line is too long warnings to documentation.
  • Added binary executable file for Windows.
Compare
Choose a tag to compare

Breaking changes:

  • New format for defining standard sets of globals that can
    describe all allowed fields of each global.

New features and improvements:

  • Luacheck can now detect mutations and accesses of specific fields
    within globals. Standard global definitions have been updated
    to provide prec…
Compare
Choose a tag to compare

New features and improvements:

  • Indirect mutations of read-only globals through local aliases
    are now detected (e.g. local t = table; t.foo = "bar").
  • New CLI, config, and inline option not_globals for removing
    defined standard and custom globals (#88).
  • Custom globals defined as mutable using globals