Skip to content

Commit b789e1c

Browse files
committed
0.6.0 release
1 parent 2c5e94f commit b789e1c

23 files changed

Lines changed: 87 additions & 459 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/mpeterv/luacheck.png?branch=master)](https://travis-ci.org/mpeterv/luacheck)
44

5-
Luacheck is a tool for linting and static analysis of [Lua](http://www.lua.org) code. It is able to spot usage of undefined global variables, unused local variables and a few other typical problems within Lua applications.
5+
Luacheck is a tool for linting and static analysis of [Lua](http://www.lua.org) code. It is able to spot usage of undefined global variables, unused local variables and a few other typical problems within Lua programs.
66

77
Luacheck provides a command line interface as well as a Lua module which can be used by other programs.
88

@@ -32,7 +32,7 @@ Documentation is available [online](http://luacheck.readthedocs.org). If Luachec
3232

3333
## Development
3434

35-
Luacheck is currently in development. The latest released version is 0.5.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable.
35+
Luacheck is currently in development. The latest released version is 0.6.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable.
3636

3737
Use the Luacheck issue tracker on GitHub to submit bugs, suggestions and questions. Any pull requests are welcome, too.
3838

bin/luacheck.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/env lua
2-
local version = "0.5.0"
2+
local version = "0.6.0"
33

44
local function fatal(msg)
55
io.stderr:write("Fatal error: "..msg.."\n")

doc/_sources/cli.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The output of ``luacheck`` consists of separate reports for each checked file an
3535

3636
Total: 14 warnings / 1 error in 4 files
3737

38-
``luacheck`` exits with 0 if no warnings or errors occured and with 1 otherwise.
38+
``luacheck`` exits with 0 if no warnings or errors occured and with a positive number otherwise.
3939

4040
.. _cliopts:
4141

doc/_sources/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ An example of a config which makes ``luacheck`` ensure that only globals from th
1919
Per-file overrides
2020
------------------
2121

22-
The envirment in which ``luacheck`` loads the config contains a special global ``files``. When checking a file ``<path>``, ``luacheck`` will override options from the main config with entries from ``files[<path>]``. For example, the following config re-enables detection of unused arguments only for ``myfile.lua``:
22+
The environment in which ``luacheck`` loads the config contains a special global ``files``. When checking a file ``<path>``, ``luacheck`` will override options from the main config with entries from ``files[<path>]``. For example, the following config re-enables detection of unused arguments only for ``myfile.lua``:
2323

2424
.. code-block:: lua
2525
:linenos:

doc/_sources/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Contents:
1010
config
1111
module
1212

13-
`Luacheck <https://github.com/mpeterv/luacheck/>`_ is a tool for linting and static analysis of `Lua <http://www.lua.org/>`_ code. It is able to spot usage of undefined global variables, unused local variables and a few other typical problems within Lua applications.
13+
`Luacheck <https://github.com/mpeterv/luacheck/>`_ is a tool for linting and static analysis of `Lua <http://www.lua.org/>`_ code. It is able to spot usage of undefined global variables, unused local variables and a few other typical problems within Lua programs.
1414

1515
Luacheck provides a command line interface as well as a Lua module which can be used by other programs.
1616

17-
This is the documentation for the 0.5.0 version.
17+
This is the documentation for the 0.6.0 version.

doc/_sources/module.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Option Type Default value
2727
``options.unused_globals`` Boolean ``true``
2828
``options.ignore`` Array of strings ``{}``
2929
``options.only`` Array of strings (Do not filter)
30-
========================== ==========================================
30+
========================== ========================== ===============
3131

3232
When checking ``n``-th file, ``luacheck`` will try to combine ``options[n]`` with general options, similarly to how per file config tables overwrite general config table. See :doc:`config`.
3333

doc/_sources/warnings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Types of warnings
44
Luacheck generates warnings of three types:
55

66
* warnings related to global variables;
7-
* warnings related to unused local variables and variables;
7+
* warnings related to unused local variables and values;
88
* warnings related to redefined local variables.
99

1010
Global variables

doc/_static/default.css

Lines changed: 0 additions & 256 deletions
This file was deleted.

0 commit comments

Comments
 (0)