forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
76 lines (57 loc) · 1.08 KB
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
std = "ngx_lua"
unused_args = false
redefined = false
max_line_length = false
globals = {
"_KONG",
"kong",
"ngx.IS_CLI",
}
not_globals = {
"string.len",
"table.getn",
}
ignore = {
"6.", -- ignore whitespace warnings
}
exclude_files = {
"spec/fixtures/invalid-module.lua",
"spec-old-api/fixtures/invalid-module.lua",
"bazel-bin",
"bazel-out",
"bazel-kong",
}
files["kong/tools/sandbox/kong.lua"] = {
read_globals = {
"_ENV",
"table.pack",
"table.unpack",
}
}
files["kong/hooks.lua"] = {
read_globals = {
"table.pack",
"table.unpack",
}
}
files["kong/db/schema/entities/workspaces.lua"] = {
read_globals = {
"table.unpack",
}
}
files["kong/plugins/ldap-auth/*.lua"] = {
read_globals = {
"bit.mod",
"string.pack",
"string.unpack",
},
}
files["spec/**/*.lua"] = {
std = "ngx_lua+busted",
}
files["**/*_test.lua"] = {
std = "ngx_lua+busted",
}
files["spec-old-api/**/*.lua"] = {
std = "ngx_lua+busted",
}