-
Notifications
You must be signed in to change notification settings - Fork 30
/
.luacheckrc
49 lines (45 loc) · 1005 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
std = 'luajit'
globals = {'box', '_TARANTOOL', 'tonumber64', 'utf8', 'table'}
ignore = {
-- Unused argument <self>.
'212/self',
-- Shadowing a local variable.
'421',
-- Shadowing an upvalue.
'431',
-- Shadowing an upvalue argument.
'432',
}
include_files = {
'vshard/**/*.lua',
'test/**/*_test.lua',
'test/luatest_helpers/vtest.lua',
'test/instances/*.lua',
}
exclude_files = {
'test/var/*',
}
local test_rules = {
ignore = {
-- Accessing an undefined variable.
'113/ifiber',
'113/ilt',
'113/imsgpack',
'112/ivconst',
'113/ivconst',
'113/iverror',
'112/ivshard',
'113/ivshard',
'113/ivtest',
'113/ivutil',
'113/iwait_timeout',
}
}
files['test/**/*_test.lua'] = test_rules
files['test/luatest_helpers/vtest.lua'] = test_rules
files['test/unit-luatest/version_test.lua'] = {
ignore = {
-- Replace comparison sign
'581'
}
}