diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 20:05:12 +0100 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 22:59:06 +0100 |
commit | ac83d941419806a546bd2988eac0669269011719 (patch) | |
tree | 31200437991a680fb1bb55b689454849f363908c | |
parent | 6f8f8fda06c6fa499484feeb6068b560b13d7859 (diff) | |
download | luasystem-ac83d941419806a546bd2988eac0669269011719.tar.gz luasystem-ac83d941419806a546bd2988eac0669269011719.tar.bz2 luasystem-ac83d941419806a546bd2988eac0669269011719.zip |
chore(ci): add linter for tests and rockspecs
-rw-r--r-- | .luacheckrc | 32 |
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 @@ | |||
1 | unused_args = false | ||
2 | redefined = false | ||
3 | max_line_length = false | ||
4 | |||
5 | globals = { | ||
6 | -- "ngx", | ||
7 | } | ||
8 | |||
9 | not_globals = { | ||
10 | -- deprecated Lua 5.0 functions | ||
11 | "string.len", | ||
12 | "table.getn", | ||
13 | } | ||
14 | |||
15 | include_files = { | ||
16 | "**/*.lua", | ||
17 | "**/*.rockspec", | ||
18 | ".busted", | ||
19 | ".luacheckrc", | ||
20 | } | ||
21 | |||
22 | files["spec/**/*.lua"] = { | ||
23 | std = "+busted", | ||
24 | } | ||
25 | |||
26 | exclude_files = { | ||
27 | -- The Github Actions Lua Environment | ||
28 | ".lua", | ||
29 | ".luarocks", | ||
30 | ".install", | ||
31 | } | ||
32 | |||