Releases: mpeterv/luacheck
Releases · mpeterv/luacheck
0.12.0
New features/improvements:
- New
ngx_luaglobals set for Openresty ngx_lua module (#41). - Better CLI error messages.
Fixes:
- Fixed duplicate "uninitialized access" and "unreachable code" warnings in nested functions.
Miscellaneous:
- RTD theme is no longer required when building docs.
- HTML docs are no longer stored in the repo.
0.11.1
Improvements:
- More accurate analysis around literal conditions, e.g.
while true do ... end. - Extra threads are not created when number of files is less than value of
--jobsoption.
Fixes:
0.11.0
New features and improvements:
- During config lookup all directories starting from current one and up to file system root are traversed in search of config. Path-related data from config loaded from an upper directory is adjusted to work as if Luacheck was started from the directory with config.
- New
--exclude-filesand--include-filesoptions for file filtering using globbing patterns. - More CLI and config options can be used inline.
- Underscores in inline option names can be replaced with spaces.
- Inline options without arguments can be prefixed with
noto invert meaning. - New built-in global set
bustedcontaining globals of Busted testing framework. - Stable interface for editor plugins.
- New
luacheck.get_messagefunction for formatting a message for a warning or error. - Sets of standard globals can be merged using
+. - If value of
stdoption starts with+, new set is added to old one instead of overwriting it, - New
--filenameoption allows using real file name for picking config per-path overrides while passing source through stdin or a temporary file. - New
--rangesoption provides column ranges for tokens related to warnings. - New
--no-selfoption for ignoring warnings related to implicitselfargument. - Config options can now be returned as a table.
- Config now has access to all regular globals in its environment.
- New sets of standard globals can be created by mutating global
stdsin config. formatterconfig option now accepts functions.- Warnings returned from
luacheck.*functions now have.end_columnfield with last column of related token. - JUnit formatter now produces a testcase per each issue.
Fixes:
- Fixed validation error when attempting to use
formatteroption in config. - Fixed incorrect error location for
invalid escape sequencesyntax errors. - FIxed spurious quotes in typecheck error messages in
luacheck.*functions. - UTF BOM is now stripped when reading files.
Breaking changes:
- Removed
--no-unused-globalsoption, use--ignore 13instead. - Removed
.varargfield for warnings related to varargs, check.name == "..."instead. - Errors now also have codes, starting with
0, and are returned together with warnings fromluacheck.*functions.
0.10.0
New features:
- Added caching of check results (
--cacheand--no-cacheoptions). - Added parallel checking (
--jobs/-joption). - Added reporting of syntax error message and location in CLI.
- Added
--versioncommand for showing versions of Luacheck and its dependencies. - Added more functions to
luacheckLua module.
Fixes:
- Fixed file status label not being colored when using
-qq.
Breaking changes:
- Removed
--limit/-loption, use inline options to ignore warnings that are OK. - Removed
--no-unused-values/-voption, use--no-unused-secondaries/-sinstead. - Removed
--no-unsetoption, use--ignore 221instead.
Miscellaneous:
- Added installer script.
0.9.0
0.8.0
- Added new diagnostics:
- Added detection of unused labels;
- Added detection of unreachable code;
- Added detection of loops that can be executed at most once;
- Added detection of uninitialized variables;
- Added detection of shadowed local variables;
- Added detection of empty blocks;
- Added detection of unbalanced assignments;
- New warning categorization system using warning codes;
- Added possibility to mark globals as read-only (most standard globals are so by default);
- Added possibility to overwrite options on per-directory basis in config;
- Some CLI-specific options can now be used in config (e.g.
color); - Removed unnecessary dependencies, simplified manual installation;
- Added executable wrapper for Windows, thanks @andrewstarks;
- Added standard global sets for Lua 5.3;
- Some minor fixes and improvements.
0.7.3
0.7.2
0.7.1
0.7.0
- Added
--allow-defined-topand `--module`` options for more flexible checking of files which are supposed to set globals. - Added
--no-unused-secondariesoption for removing warnings about unused values set together with used ones. - Added detection of variables that are used bet never set.
- Fixed ignoring
stdconfig option. - Fixed incompatibility with Lua 5.3.