Skip to content

0.23.0

Latest
Compare
Choose a tag to compare
@mpeterv mpeterv released this 18 Sep 20:13
· 16 commits to master since this release
76bb567

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 copying src/* to a directory in package.path and copying bin/luacheck.lua to a directory in PATH as luacheck.

New features and improvements:

  • Warning columns are now reported in Unicode codepoints if input is valid UTF-8 (#45).
  • Added indentaion-based guessing of a better location for missing end and until syntax errors.
  • Added luacheckrc set of allowed globals containing globals used in Luacheck config to set options.
  • Added default stds equivalent to predefined per-path std overrides in config:
    • files["**/spec/**/*_spec.lua"].std = "+busted";
    • files["**/test/**/*_spec.lua"].std = "+busted";
    • files["**/tests/**/*_spec.lua"].std = "+busted";
    • files["**/*.rockspec"].std = "+rockspec";
    • files["**/*.luacheckrc"].std = "+luacheckrc".
  • Added detection of numeric for loops going from #t to 1 without negative step (#160).
  • Added support for LuaRocks 3 module autodetection when checking rockspecs (#176).
  • Updated love standard for LÖVE 11.1 (#178).

Changes:

  • Default set of standard globals is now always max, allowing globals of all Lua versions. _G std is deprecated.

Fixes:

  • Added missing globals to rockspec std: hooks, deploy, build_dependencies, test_dependencies, and test.
  • Fixed line lengths appearing in the output before other warnings on the same line even if their column numbers are smaller.

Miscellaneous:

  • Luacheck now depends on argparse instead of bundling it.
  • LuaFileSystem dependency is now required.