Breaking changes:
- Removed
--no-inline
CLI option andinline
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 inpackage.path
and copyingbin/luacheck.lua
to a directory inPATH
asluacheck
.
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
anduntil
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
to1
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
, 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.