-
Notifications
You must be signed in to change notification settings - Fork 590
/
.luacheckrc
57 lines (54 loc) · 1.04 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
--
-- These globals can be set and accessed:
--
globals = {
"rawrequire",
}
--
-- These globals can only be accessed:
--
read_globals = {
"hs",
"ls",
"spoon",
}
--
-- Hammerspoon Tests:
--
files["**/test_*.lua"] = {
read_globals = {
"assertFalse",
"assertGreaterThan",
"assertGreaterThanOrEqualTo",
"assertIsAlmostEqual",
"assertIsBoolean",
"assertIsEqual",
"assertIsFunction",
"assertIsNil",
"assertIsNotNil",
"assertIsNumber",
"assertIsString",
"assertIsTable",
"assertIsType",
"assertIsUserdata",
"assertIsUserdataOfType",
"assertLessThan",
"assertLessThanOrEqualTo",
"assertListsEqual",
"assertTableNotEmpty",
"assertTablesEqual",
"assertTrue",
"failure",
"success",
},
ignore = {
"111", -- Setting an undefined global variable
"501" -- Line too long
}
}
--
-- Warnings to ignore:
--
ignore = {
"631" -- Line is too long.
}