Skip to content

Commit 5784e3f

Browse files
committed
chore: Release v0.26.0
1 parent 85ad88f commit 5784e3f

File tree

8 files changed

+119
-8
lines changed

8 files changed

+119
-8
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## v0.26.0 (2022-03-23)
4+
5+
### New Features
6+
7+
* Add "unused hint" flag — @javierguerragiraldez
8+
Function arguments that start with a single underscore get an "unused hint".
9+
Leaving them unused doesn't result in a warning.
10+
Using them, on the other hand, is a new warning (№ 214).
11+
* Add hook to enable Luacheck for use in pre-commit — @mblayman
12+
* Warn on error-prone and unnecessary negations — @arichard4
13+
Two new warnings (№ 581 and 582) flag error-prone operator orders.
14+
* Add Dockerfile implementation — @MartinBroers
15+
A 6.34MB containerized image with everything needed to run the linter.
16+
Build your own or pull prebuilt images from GHRC.
17+
* Setup repository for use *as* a GitHub Action — @alerque
18+
Lint your repositories using GitHub Action workflows with just a single `uses:` step.
19+
20+
### Fixes
21+
22+
* Don't mark variables as accessed if only references are circular — @arichard4
23+
* Make test suite Lua 5.4 compatible — @alerque
24+
* Correct small issues in documentation — various
25+
26+
### Miscellaneous
27+
28+
* Overhaul CI workflows for testing, linting, building, and releasing — @alerque
29+
* Update URLs and documentation reflecting new repository home — @lunarmodules
30+
331
## 0.25.0 (2020-08-25)
432

533
### New features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For parallel checking Luacheck additionally requires [LuaLanes](https://github.c
4040
### Windows binary download
4141

4242
For Windows there is single-file 64-bit binary distribution, bundling Lua 5.4.4, Luacheck, LuaFileSystem, and LuaLanes using [LuaStatic](https://github.com/ers35/luastatic):
43-
[download](https://github.com/lunarmodules/luacheck/releases/download/0.25.0/luacheck.exe).
43+
[download](https://github.com/lunarmodules/luacheck/releases/download/0.26.0/luacheck.exe).
4444

4545
## Basic usage
4646

@@ -109,7 +109,7 @@ Documentation can be built using [Sphinx](http://sphinx-doc.org/): `sphinx-build
109109

110110
## Development
111111

112-
Luacheck is currently in development. The latest released version is 0.25.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable.
112+
Luacheck is currently in development. The latest released version is 0.26.0. The interface of the `luacheck` module may change between minor releases. The command line interface is fairly stable.
113113

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

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
default: "."
88
runs:
99
using: docker
10-
image: docker://ghcr.io/lunarmodules/luacheck:v0.25.0
10+
image: docker://ghcr.io/lunarmodules/luacheck:v0.26.0
1111
entrypoint: sh
1212
args:
1313
- -c

docsrc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '0.25.0'
51+
version = '0.26.0'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '0.25.0'
53+
release = '0.26.0'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

docsrc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Contents:
1111
inline
1212
module
1313

14-
This is documentation for 0.25.0 version of `Luacheck <https://github.com/lunarmodules/luacheck/>`_, a linter for `Lua <https://www.lua.org/>`_.
14+
This is documentation for 0.26.0 version of `Luacheck <https://github.com/lunarmodules/luacheck/>`_, a linter for `Lua <https://www.lua.org/>`_.

luacheck-dev-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ build = {
6767
["luacheck.unicode_printability_boundaries"] = "src/luacheck/unicode_printability_boundaries.lua",
6868
["luacheck.utils"] = "src/luacheck/utils.lua",
6969
["luacheck.vendor.sha1"] = "src/luacheck/vendor/sha1/init.lua",
70-
["luacheck.vendor.sha1.bit_ops"] = "src/luacheck/vendor/sha1/bit_ops.lua",
7170
["luacheck.vendor.sha1.bit32_ops"] = "src/luacheck/vendor/sha1/bit32_ops.lua",
71+
["luacheck.vendor.sha1.bit_ops"] = "src/luacheck/vendor/sha1/bit_ops.lua",
7272
["luacheck.vendor.sha1.common"] = "src/luacheck/vendor/sha1/common.lua",
7373
["luacheck.vendor.sha1.lua53_ops"] = "src/luacheck/vendor/sha1/lua53_ops.lua",
7474
["luacheck.vendor.sha1.pure_lua_ops"] = "src/luacheck/vendor/sha1/pure_lua_ops.lua",
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
package = "luacheck"
2+
version = "0.26.0-1"
3+
source = {
4+
url = "git+https://github.com/lunarmodules/luacheck.git",
5+
tag = "v0.26.0"
6+
}
7+
description = {
8+
summary = "A static analyzer and a linter for Lua",
9+
detailed = [[
10+
Luacheck is a command-line tool for linting and static analysis of Lua code.
11+
It is able to spot usage of undefined global variables, unused local variables and
12+
a few other typical problems within Lua programs.
13+
]],
14+
homepage = "https://github.com/lunarmodules/luacheck",
15+
license = "MIT"
16+
}
17+
dependencies = {
18+
"lua >= 5.1",
19+
"argparse >= 0.6.0",
20+
"luafilesystem >= 1.6.3"
21+
}
22+
build = {
23+
type = "builtin",
24+
modules = {
25+
luacheck = "src/luacheck/init.lua",
26+
["luacheck.builtin_standards"] = "src/luacheck/builtin_standards/init.lua",
27+
["luacheck.builtin_standards.love"] = "src/luacheck/builtin_standards/love.lua",
28+
["luacheck.builtin_standards.ngx"] = "src/luacheck/builtin_standards/ngx.lua",
29+
["luacheck.cache"] = "src/luacheck/cache.lua",
30+
["luacheck.check"] = "src/luacheck/check.lua",
31+
["luacheck.check_state"] = "src/luacheck/check_state.lua",
32+
["luacheck.config"] = "src/luacheck/config.lua",
33+
["luacheck.core_utils"] = "src/luacheck/core_utils.lua",
34+
["luacheck.decoder"] = "src/luacheck/decoder.lua",
35+
["luacheck.expand_rockspec"] = "src/luacheck/expand_rockspec.lua",
36+
["luacheck.filter"] = "src/luacheck/filter.lua",
37+
["luacheck.format"] = "src/luacheck/format.lua",
38+
["luacheck.fs"] = "src/luacheck/fs.lua",
39+
["luacheck.globbing"] = "src/luacheck/globbing.lua",
40+
["luacheck.lexer"] = "src/luacheck/lexer.lua",
41+
["luacheck.main"] = "src/luacheck/main.lua",
42+
["luacheck.multithreading"] = "src/luacheck/multithreading.lua",
43+
["luacheck.options"] = "src/luacheck/options.lua",
44+
["luacheck.parser"] = "src/luacheck/parser.lua",
45+
["luacheck.profiler"] = "src/luacheck/profiler.lua",
46+
["luacheck.runner"] = "src/luacheck/runner.lua",
47+
["luacheck.serializer"] = "src/luacheck/serializer.lua",
48+
["luacheck.stages"] = "src/luacheck/stages/init.lua",
49+
["luacheck.stages.detect_bad_whitespace"] = "src/luacheck/stages/detect_bad_whitespace.lua",
50+
["luacheck.stages.detect_cyclomatic_complexity"] = "src/luacheck/stages/detect_cyclomatic_complexity.lua",
51+
["luacheck.stages.detect_empty_blocks"] = "src/luacheck/stages/detect_empty_blocks.lua",
52+
["luacheck.stages.detect_empty_statements"] = "src/luacheck/stages/detect_empty_statements.lua",
53+
["luacheck.stages.detect_globals"] = "src/luacheck/stages/detect_globals.lua",
54+
["luacheck.stages.detect_reversed_fornum_loops"] = "src/luacheck/stages/detect_reversed_fornum_loops.lua",
55+
["luacheck.stages.detect_unbalanced_assignments"] = "src/luacheck/stages/detect_unbalanced_assignments.lua",
56+
["luacheck.stages.detect_uninit_accesses"] = "src/luacheck/stages/detect_uninit_accesses.lua",
57+
["luacheck.stages.detect_unreachable_code"] = "src/luacheck/stages/detect_unreachable_code.lua",
58+
["luacheck.stages.detect_unused_fields"] = "src/luacheck/stages/detect_unused_fields.lua",
59+
["luacheck.stages.detect_unused_locals"] = "src/luacheck/stages/detect_unused_locals.lua",
60+
["luacheck.stages.linearize"] = "src/luacheck/stages/linearize.lua",
61+
["luacheck.stages.name_functions"] = "src/luacheck/stages/name_functions.lua",
62+
["luacheck.stages.parse"] = "src/luacheck/stages/parse.lua",
63+
["luacheck.stages.parse_inline_options"] = "src/luacheck/stages/parse_inline_options.lua",
64+
["luacheck.stages.resolve_locals"] = "src/luacheck/stages/resolve_locals.lua",
65+
["luacheck.stages.unwrap_parens"] = "src/luacheck/stages/unwrap_parens.lua",
66+
["luacheck.standards"] = "src/luacheck/standards.lua",
67+
["luacheck.unicode"] = "src/luacheck/unicode.lua",
68+
["luacheck.unicode_printability_boundaries"] = "src/luacheck/unicode_printability_boundaries.lua",
69+
["luacheck.utils"] = "src/luacheck/utils.lua",
70+
["luacheck.vendor.sha1"] = "src/luacheck/vendor/sha1/init.lua",
71+
["luacheck.vendor.sha1.bit32_ops"] = "src/luacheck/vendor/sha1/bit32_ops.lua",
72+
["luacheck.vendor.sha1.bit_ops"] = "src/luacheck/vendor/sha1/bit_ops.lua",
73+
["luacheck.vendor.sha1.common"] = "src/luacheck/vendor/sha1/common.lua",
74+
["luacheck.vendor.sha1.lua53_ops"] = "src/luacheck/vendor/sha1/lua53_ops.lua",
75+
["luacheck.vendor.sha1.pure_lua_ops"] = "src/luacheck/vendor/sha1/pure_lua_ops.lua",
76+
["luacheck.version"] = "src/luacheck/version.lua"
77+
},
78+
install = {
79+
bin = {
80+
luacheck = "bin/luacheck.lua"
81+
}
82+
}
83+
}

src/luacheck/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local format = require "luacheck.format"
55
local utils = require "luacheck.utils"
66

77
local luacheck = {
8-
_VERSION = "0.25.0"
8+
_VERSION = "0.26.0"
99
}
1010

1111
local function raw_validate_options(fname, opts, stds, context)

0 commit comments

Comments
 (0)