-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.luacheckrc
56 lines (47 loc) · 957 Bytes
/
.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
std = "luajit"
codes = true
read_globals = {
-- Tarantool vars:
"box",
"tonumber64",
"package",
"spacer",
"F",
"T",
package = {
fields = {
reload = {
fields = {
"count",
"register",
}
}
}
},
-- Exported by package 'config'
"config",
}
max_line_length = 200
ignore = {
"212",
"213",
"411", -- ignore was previously defined
"422", -- ignore shadowing
"111", -- ignore non standart functions; for tarantool there is global functions
}
local conf_rules = {
read_globals = {
"instance_name",
},
globals = {
"box", "etcd",
}
}
exclude_files = {
"tests/tnt/.rocks/*",
"examples/customer/tarantool/.rocks/*",
"tests/tnt/tmp/*", -- ignore tmp tarantool files
"examples/customer/tarantool/*", -- TODO: now we ignore examples from original vshard example
".rocks/*", -- ignore rocks after tests prepare
}
files["etc/*.lua"] = conf_rules