forked from Liquipedia/Lua-Modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.luacheckrc
More file actions
44 lines (42 loc) · 686 Bytes
/
.luacheckrc
File metadata and controls
44 lines (42 loc) · 686 Bytes
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
std = {
globals = {
"mw",
},
read_globals = {
"arg",
"assert",
"debug",
"error",
"getmetatable",
"ipairs",
"math",
"next",
"os",
"package",
"pairs",
"pcall",
"rawget",
"rawset",
"require",
"select",
"setmetatable",
"string",
"table",
"tonumber",
"tostring",
"type",
"unpack",
"xpcall",
}
}
exclude_files = {
".install", -- package files
".luarocks", -- package manager files
"3rd/*", -- 3rd party
"node_modules/*", -- to speedup run when running locally
}
-- https://luacheck.readthedocs.io/en/stable/warnings.html#list-of-warnings
ignore = {
"212" -- unused argument
}
files["spec/*_spec.lua"].read_globals = {"GoldenTest"}