diff --git a/.luacheckrc b/.luacheckrc index 25970a8ef41f8899d051b9571998de0399587e82..00098afe3b054c87983518a4f28e41073b83176c 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -49,8 +49,6 @@ exclude_files = { files["test/sql-tap/**/*.lua"] = { ignore = { - -- Unused argument. - "212", -- Unused loop variable. "213", -- Local variable is set but never accessed. diff --git a/test/sql-tap/e_expr.test.lua b/test/sql-tap/e_expr.test.lua index 67c8579627a5508acffaa9994f739c5993bf0c07..f9cfadbca9e7cd0c4c8012f238d45cd28a21dca1 100755 --- a/test/sql-tap/e_expr.test.lua +++ b/test/sql-tap/e_expr.test.lua @@ -1077,7 +1077,7 @@ test:do_execsql_test( -- -- MUST_WORK_TEST prepared statements if (0>0) then - local function parameter_test(tn, sql, params, result) + local function parameter_test(tn, sql, params, result) -- luacheck: no unused -- Legacy from the original code. Must be replaced with analogue -- functions from box. local X = nil @@ -1286,7 +1286,7 @@ test:do_execsql_test( test:execsql [[ CREATE TABLE tblname(cname INT PRIMARY KEY); ]] -local function glob(args) +local function glob() return 1 end diff --git a/test/sql-tap/identifier-characters.test.lua b/test/sql-tap/identifier-characters.test.lua index 7b257921df1f5dd3a80a56588d82a95858ff0e2a..184916bd3ed585d4070c78c883974c9145198132 100755 --- a/test/sql-tap/identifier-characters.test.lua +++ b/test/sql-tap/identifier-characters.test.lua @@ -65,7 +65,7 @@ local testcases = { test:execsql("commit") if ok == false then error(res) end end, - function (id) end}, + function () end}, {"trigger name", function (id) test:execsql(string.format([[ diff --git a/test/sql-tap/lua/sqltester.lua b/test/sql-tap/lua/sqltester.lua index 4ae80c0267efe40af6efd85ff2d1bbe252f0a0dd..34ffad476eee5acd4db35b0b644663276e0bb1d8 100644 --- a/test/sql-tap/lua/sqltester.lua +++ b/test/sql-tap/lua/sqltester.lua @@ -179,7 +179,7 @@ local function execsql(self, sql) end test.execsql = execsql -local function catchsql(self, sql, expect) +local function catchsql(self, sql) local r = {pcall(execsql, self, sql) } if r[1] == true then r[1] = 0 diff --git a/test/sql-tap/sort.test.lua b/test/sql-tap/sort.test.lua index 6ccb9939216343935591a31e14b315565a97ff1f..b28bba0e5c55cf52511500acd4121e16488344dc 100755 --- a/test/sql-tap/sort.test.lua +++ b/test/sql-tap/sort.test.lua @@ -763,7 +763,7 @@ if (0 > 0) then -- Legacy from the original code. Must be replaced with analogue -- functions from box. local X = nil -local function cksum(x) +local function cksum(x) -- luacheck: no unused local i1 = 1 local i2 = 2 X(503, "X!cmd", [=[["binary","scan",["x"],"c*","L"]]=])