Skip to content

Commit 2cdc3d1

Browse files
committed
Add luacheck config and fix warnings found by luacheck
- removed statement with info variable as it is unused - luacheck contains same global supressions as config in tarantool repository - path with tarantool-python is excluded until [1] is open 1. tarantool/tarantool-python#178 Part of #208
1 parent b5fcafb commit 2cdc3d1

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.luacheckrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
globals = {"box", "_TARANTOOL", "tonumber64"}
2+
ignore = {
3+
-- Accessing an undefined field of a global variable <debug>.
4+
"143/debug",
5+
-- Accessing an undefined field of a global variable <string>.
6+
"143/string",
7+
-- Accessing an undefined field of a global variable <table>.
8+
"143/table",
9+
-- Unused argument <self>.
10+
"212/self",
11+
-- Redefining a local variable.
12+
"411",
13+
-- Redefining an argument.
14+
"412",
15+
-- Shadowing a local variable.
16+
"421",
17+
-- Shadowing an upvalue.
18+
"431",
19+
-- Shadowing an upvalue argument.
20+
"432",
21+
}
22+
23+
include_files = {
24+
"**/*.lua",
25+
}
26+
27+
exclude_files = {
28+
"lib/tarantool-python",
29+
}

test_run.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ local function wait_fullmesh(self, servers)
163163
log.info("%s: bootstrapped", server)
164164
break
165165
end
166-
local info = self:eval(server, "box.info")
167166
fiber.sleep(0.01)
168167
end
169168
-- wait all for full mesh

0 commit comments

Comments
 (0)