forked from nvim-lua/plenary.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
60 lines (53 loc) · 1.11 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
-- Rerun tests only if their modification time changed.
cache = true
std = luajit
codes = true
self = false
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {
"212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
"122", -- Indirectly setting a readonly global
}
globals = {
"_",
"_PlenaryLeafTable",
"_PlenaryBustedOldAssert",
"_AssociatedBufs",
}
-- Global objects defined by the C code
read_globals = {
"vim",
}
exclude_files = {
"lua/plenary/profile/lua_profiler.lua",
"lua/plenary/profile/memory_profiler.lua",
"lua/plenary/async_lib/*.lua",
}
files = {
["lua/plenary/busted.lua"] = {
globals = {
"describe",
"it",
"pending",
"before_each",
"after_each",
"clear",
"assert",
"print",
},
},
["lua/plenary/async/init.lua"] = {
globals = {
"a",
},
},
["lua/plenary/async/tests.lua"] = {
globals = {
"describe",
"it",
"pending",
"before_each",
"after_each",
},
},
}