-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.luacheckrc
68 lines (58 loc) · 1.13 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
-- Only allow symbols available in all Lua versions
std = "min"
-- Get rid of "unused argument self"-warnings
self = false
----function f()
-- --a, b, c = call() ; return a, b -- unused "c"
----end
unused_secondaries = true
-- The unit tests can use busted
--files["spec"].std = "+busted"
--
ignore = {
"212/_.*",
--"212/self",
}
-- The .luacheck config may set global variables
files[".luacheckrc"] = {
allow_defined_top = true,
ignore = { "131", "112" },
}
-- Global objects defined by the C code
read_globals = {
"awesome",
"button",
"dbus",
"drawable",
"drawin",
"key",
"keygrabber",
"mousegrabber",
"root",
"selection",
"tag",
"window",
"table.unpack",
"unpack",
"math.atan2",
"jit",
"pack",
"unpack"
}
-- May not be read-only due to client.focus
globals = {
"screen",
"mouse",
"client",
"nlog",
"log",
"CONFIG_CONTEXT",
}
exclude_files = {
"third_party/*",
"actionless/menubar/*",
"misc/*",
"**/*lcars*", -- @TODO
}
codes = true
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80