-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
33 lines (27 loc) · 911 Bytes
/
.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
std = {
read_globals = {
"abstract", "class", "namespace", "extends", "implements", "from", "interface", "singleton",
"mixin", "accessor", "getter", "setter", "super", "this", "shared", "shared_block",
"coroutine", "assert", "tostring", "tonumber", "rawget", "xpcall", "ipairs", "print",
"pcall", "gcinfo", "pairs", "package", "error", "debug", "loadfile", "rawequal",
"loadstring", "rawset", "unpack", "table", "require", "_VERSION",
"newproxy", "collectgarbage", "dofile", "next", "load", "_G", "select",
"type", "getmetatable", "setmetatable",
"io",
"bit",
"math",
"os",
"string",
"jit",
"arg",
"getfenv",
"setfenv",
"module"
}
}
files["examples/**/*.lua"] = {ignore = {"111"}}
files["profile/classes/**/*.lua"] = {ignore = {"111"}}
files["tests/classes/**/*.lua"] = {ignore = {"111"}}
allow_defined = true
max_cyclomatic_complexity = 15
ignore = {"212/self", "131"}