[Tarantool-patches] [PATCH v8 10/14] test: fix luacheck warnings W512 in test/sql-tap
sergeyb at tarantool.org
sergeyb at tarantool.org
Thu Jan 21 15:50:11 MSK 2021
From: Sergey Bronnikov <sergeyb at tarantool.org>
W512 (Loop can be executed at most once)
Part of #5464
---
.luacheckrc | 2 --
test/sql-tap/e_expr.test.lua | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/.luacheckrc b/.luacheckrc
index 88fc34fa4..53c5de34d 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -51,8 +51,6 @@ exclude_files = {
files["test/sql-tap/**/*.lua"] = {
ignore = {
- -- Loop can be executed at most once.
- "512",
-- An empty if branch.
"542",
-- A line consists of nothing but whitespace.
diff --git a/test/sql-tap/e_expr.test.lua b/test/sql-tap/e_expr.test.lua
index b488bdc60..1260b321c 100755
--- a/test/sql-tap/e_expr.test.lua
+++ b/test/sql-tap/e_expr.test.lua
@@ -2660,6 +2660,7 @@ if 0>0 then
-- comparisons take place.
--
+ -- luacheck: ignore
for _ in X(0, "X!foreach", [=[["a b c",[["list",[["expr","3"]],[["expr","4"]],[["expr","5"]]]]]]=]) do
break
end
--
2.25.1
More information about the Tarantool-patches
mailing list