diff options
-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 | |||