-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.luacheckrc
47 lines (45 loc) · 1.05 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
-- This is a list of globals defined by Tabletop Simulator (currently incomplete).
read_globals = {
"Color",
"Global",
"Hands",
"JSON",
"Notes",
"Physics",
"Player",
"Table",
"UI",
"Vector",
"Wait",
"addContextMenuItem",
"addHotkey",
"broadcastToAll",
"clearHotkeys",
"destroyObject",
"getAllObjects",
"getObjects",
"getObjectFromGUID",
"getObjectsWithAllTags",
"getObjectsWithAnyTags",
"getObjectsWithTag",
"group",
"printToAll",
"setLookingForPlayers",
"spawnObject",
"spawnObjectData",
"spawnObjectJSON",
"startLuaCoroutine",
}
-- Additionally `self` and `Hands` have mutable fields.
files["objects/**/*.lua"] = {
globals = {"self", "Hands"},
}
-- Don't have a maximum line length.
max_line_length = false
-- Ignores.
allow_defined_top = true
ignore = {
"131", -- unused global variable, we should annotate the ones we expect
"542", -- empty if branch (usually has a comment)
"212", -- unused argument; name is used as documentation
}