-
Notifications
You must be signed in to change notification settings - Fork 12
/
.luacheckrc
68 lines (53 loc) · 1.35 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
local config = {
codes = true, -- Enable warning codes
self = false, -- Ignore unused self warnings
max_line_length = false, -- Disable max line length warnings.
std = "luajit", -- LuaJIT standard environment.
globals = {
"fs",
"gpu",
"image",
"shell",
"speaker",
"net",
"write",
"addRequirePath",
"sleep",
"debugTrace",
"riko4"
},
read_globals = {
["table"] = {
fields = {
"pack"
}
}
},
ignore = {
"212", -- Unused argument.
"213" -- Unused loop variable.
},
files = {
["**/*.rlua"] = {
globals = {
"cls", "pix", "rectFill", "rect", "cls", "pal", "pixb", "cam",
"push", "sheet", "spr", "pop", "pget", "swap", "trans",
"_eventDefault", "_cleanup", "_init", "_event", "_update", "_draw",
"_w", "_h", "_running",
"rnd", "range", "elip", "elipFill", "circ", "circFill", "line",
"poly", "class", "all",
"PI", "cos", "sin", "tan", "atan2",
"flr", "ceil", "abs"
}
},
["scripts/lib/loops.lua"] = {
globals = {
"_eventDefault", "_cleanup", "_init", "_event", "_update",
"_draw", "_running"
}
}
}
}
config.files["scripts/lib/header.lua"] = config.files["**/*.rlua"]
config.files["scripts/lib/extras.lua"] = config.files["**/*.rlua"]
return config