diff --git a/CHANGELOG.md b/CHANGELOG.md index ec61e044..dd6f1d22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 0.23.0 (unreleased) +## 0.23.0 (2018-09-18) ### Breaking changes @@ -16,7 +16,7 @@ * Warning columns are now reported in Unicode codepoints if input is valid UTF-8 (#45). -* Add indentaion-based guessing of a better location for missing `end` +* 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. @@ -37,8 +37,6 @@ * Default set of standard globals is now always `max`, allowing globals of all Lua versions. `_G` std is deprecated. -* Warnings related to statements and expressions (e.g. unreachable code) now - point to the entire statement or expression instead of just the first token. ### Fixes diff --git a/README.md b/README.md index 0ae76829..deb2061f 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ For parallel checking Luacheck additionally requires [LuaLanes](https://github.c ### Windows binary download For Windows there is single-file 64-bit binary distribution, bundling Lua 5.3.4, Luacheck, LuaFileSystem, and LuaLanes using [LuaStatic](https://github.com/ers35/luastatic): -[download](https://github.com/mpeterv/luacheck/releases/download/0.22.1/luacheck.exe). +[download](https://github.com/mpeterv/luacheck/releases/download/0.23.0/luacheck.exe). ## Basic usage @@ -107,7 +107,7 @@ Documentation can be built using [Sphinx](http://sphinx-doc.org/): `sphinx-build ## Development -Luacheck is currently in development. The latest released version is 0.22.1. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable. +Luacheck is currently in development. The latest released version is 0.23.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable. Use the Luacheck issue tracker on GitHub to submit bugs, suggestions and questions. Any pull requests are welcome, too. diff --git a/docsrc/cli.rst b/docsrc/cli.rst index cd56a3ca..31b6370d 100644 --- a/docsrc/cli.rst +++ b/docsrc/cli.rst @@ -180,7 +180,7 @@ CLI options ``--globals``, ``--new-globals``, ``--read-globals``, ``--new-read-g Sets of standard globals ------------------------ -CLI option ``--stds`` allows combining built-in sets described above using ``+``. For example, ``--std max`` is equivalent to ``--std=lua51c+lua52c+lua53c+luajit``. Leading plus sign adds new sets to current one instead of replacing it. For instance, ``--std +love`` is suitable for checking files using `LÖVE `_ (love2d) framework. Custom sets of globals can be defined by mutating global variable ``stds`` in config. See :ref:`custom_stds` +CLI option ``--stds`` allows combining built-in sets described above using ``+``. For example, ``--std max`` is equivalent to ``--std=lua51c+lua52c+lua53c+luajit``. Leading plus sign adds new sets to current one instead of replacing it. For instance, ``--std +love`` is suitable for checking files using `LÖVE `_ framework. Custom sets of globals can be defined by mutating global variable ``stds`` in config. See :ref:`custom_stds` Formatters ---------- diff --git a/docsrc/conf.py b/docsrc/conf.py index 29721478..4fa4a382 100644 --- a/docsrc/conf.py +++ b/docsrc/conf.py @@ -48,9 +48,9 @@ # built documents. # # The short X.Y version. -version = '0.22.1' +version = '0.23.0' # The full version, including alpha/beta/rc tags. -release = '0.22.1' +release = '0.23.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docsrc/index.rst b/docsrc/index.rst index 896cce01..c8b0ec36 100644 --- a/docsrc/index.rst +++ b/docsrc/index.rst @@ -11,4 +11,4 @@ Contents: inline module -This is documentation for 0.22.1 version of `Luacheck `_, a linter for `Lua `_. +This is documentation for 0.23.0 version of `Luacheck `_, a linter for `Lua `_. diff --git a/docsrc/warnings.rst b/docsrc/warnings.rst index 1f634253..93d5234b 100644 --- a/docsrc/warnings.rst +++ b/docsrc/warnings.rst @@ -212,7 +212,7 @@ Reversed numeric for loops ^^^^^^^^^^^^^^^^^^^^^^^^^^ Iterating a table in reverse using a numeric for loop going from ``#t`` to ``1`` requires a negative loop step. Luacheck warns about loops -going from ``#(some expression)`` to ``1`` or a lesser constant when the loop step is not negative: +going from ``#(some expression)`` to ``1`` or a smaller constant when the loop step is not negative: .. code-block:: lua :linenos: diff --git a/src/luacheck/init.lua b/src/luacheck/init.lua index d5637c65..7fe7aed0 100644 --- a/src/luacheck/init.lua +++ b/src/luacheck/init.lua @@ -5,7 +5,7 @@ local format = require "luacheck.format" local utils = require "luacheck.utils" local luacheck = { - _VERSION = "0.22.1" + _VERSION = "0.23.0" } local function raw_validate_options(fname, opts, stds, context)