-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
65 lines (60 loc) · 1.16 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
std = "lua51"
max_line_length = false
exclude_files = {
"luacheckrc",
"build/",
"deps/",
"samples/",
"test/",
"**/path.lua", -- Not much hope here; this is ported spaghetti code from NodeJS
}
ignore = {
"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 = {
-- Test runner
"describe",
"it",
"before",
"after",
"assertEquals",
"assertFalse",
"assertThrows",
-- Assertions
"assertEquals",
"assertFalse",
"assertTrue",
"assertFunctionCalls",
"assertThrows",
-- Bundle system
"PosixFileSystemMixin",
"ZipFileSystemMixin",
-- Nonstandard primitives
"dump",
"format",
"printf",
"EVENT",
"TEST",
"DEBUG",
"INFO",
"NOTICE",
"WARNING",
"ERROR",
"CRITICAL",
"ALERT",
"EMERGENCY",
-- Nonstandard extensions
"extend",
"import",
"mixin",
"path",
"utf8", -- Provided by lua-compat-5.3 when using 5.1/LuaJIT
"transform",
-- evo APIs
"C_EventSystem",
"C_FileSystem",
"C_Networking",
"C_Testing",
}