Breaking changes:
- Removed
--no-inlineCLI option andinlineconfig 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 inpackage.pathand copyingbin/luacheck.luato a directory inPATHasluacheck.
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
endanduntilsyntax errors. - Added
luacheckrcset 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
#tto1without negative step (#160). - Added support for LuaRocks 3 module autodetection when checking rockspecs (#176).
- Updated
lovestandard for LÖVE 11.1 (#178).
Changes:
- Default set of standard globals is now always
max, allowing globals of all Lua versions._Gstd is deprecated.
Fixes:
- Added missing globals to
rockspecstd:hooks,deploy,build_dependencies,test_dependencies, andtest. - 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.