-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
71 lines (69 loc) · 1.2 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
std = "lua51"
max_line_length = false
exclude_files = {
"luacheckrc",
"deps/",
"ninjabuild-*/",
}
ignore = {
"142", -- setting undefined field of global (likely a nonstandard extension)
"143", -- accessing undefined field of global (likely a nonstandard extension)
"212", -- unused argument 'self'; not a problem and commonly used for colon notation
"213", -- unused loop variable (kept for readability's sake)
}
globals = {
-- assertions library
"assertTrue",
"assertFalse",
"assertNil",
"assertThrows",
"assertDoesNotThrow",
"assertFailure",
"assertCallsFunction",
"assertEqualStrings",
"assertEqualNumbers",
"assertApproximatelyEquals",
"assertEqualTables",
"assertEqualBooleans",
"assertEqualPointers",
"assertEqualBytes",
"assertEquals",
-- Global aliases
"ALERT",
"CRITICAL",
"DEBUG",
"EMERGENCY",
"ERROR",
"EVENT",
"INFO",
"NOTICE",
"WARNING",
"after",
"before",
"buffer",
"cast",
"cdef",
"class",
"classname",
"define",
"describe",
"dump",
"extend",
"format",
"implements",
"instanceof",
"it",
"mixin",
"new",
"path",
"printf",
"sizeof",
"typeof",
-- API namespaces
"C_CommandLine",
"C_FileSystem",
"C_ImageProcessing",
"C_Runtime",
"C_Timer",
"C_WebView",
}