aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 20:05:12 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2023-11-09 22:59:06 +0100
commitac83d941419806a546bd2988eac0669269011719 (patch)
tree31200437991a680fb1bb55b689454849f363908c
parent6f8f8fda06c6fa499484feeb6068b560b13d7859 (diff)
downloadluasystem-ac83d941419806a546bd2988eac0669269011719.tar.gz
luasystem-ac83d941419806a546bd2988eac0669269011719.tar.bz2
luasystem-ac83d941419806a546bd2988eac0669269011719.zip
chore(ci): add linter for tests and rockspecs
-rw-r--r--.luacheckrc32
1 files changed, 32 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 0000000..4dc4ec4
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,32 @@
1unused_args = false
2redefined = false
3max_line_length = false
4
5globals = {
6-- "ngx",
7}
8
9not_globals = {
10 -- deprecated Lua 5.0 functions
11 "string.len",
12 "table.getn",
13}
14
15include_files = {
16 "**/*.lua",
17 "**/*.rockspec",
18 ".busted",
19 ".luacheckrc",
20}
21
22files["spec/**/*.lua"] = {
23 std = "+busted",
24}
25
26exclude_files = {
27 -- The Github Actions Lua Environment
28 ".lua",
29 ".luarocks",
30 ".install",
31}
32