From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 45AF44696C1 for ; Tue, 12 May 2020 12:53:17 +0300 (MSK) From: sergeyb@tarantool.org Date: Tue, 12 May 2020 12:50:03 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v5 06/10] Fix luacheck warnings in src/box/lua/ List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: o.piskunov@tarantool.org, Vladislav Shpilevoy From: Sergey Bronnikov Closes #4681 Reviewed-by: Vladislav Shpilevoy Co-authored-by: Vladislav Shpilevoy --- .luacheckrc | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.luacheckrc b/.luacheckrc index 3cd05a254..e5c4c4509 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -29,6 +29,48 @@ files["extra/dist/tarantoolctl.in"] = { globals = {"box", "_TARANTOOL"}, ignore = {"212/self", "122", "431"} } +files["**/*.lua"] = { + globals = {"box", "_TARANTOOL", "help", "tutorial"}, + ignore = {"212/self", "122", "143", "142"} +} files["src/lua/*.lua"] = {ignore = {"212/self"}} files["src/lua/init.lua"] = {globals = {"dostring"}} files["src/lua/swim.lua"] = {ignore = {"431"}} +files["src/box/lua/console.lua"] = {ignore = {"212"}} +files["src/box/lua/load_cfg.lua"] = {ignore = {"542"}} +files["src/box/lua/net_box.lua"] = {ignore = {"431", "432", "411"}} +files["src/box/lua/schema.lua"] = {globals = {"tonumber64"}, ignore = {"431", "432"}} +files["test/app/lua/fiber.lua"] = {globals = {"box_fiber_run_test"}} +files["test/app-tap/console.test.lua"] = {globals = {"long_func"}} +files["test/app-tap/lua/require_mod.lua"] = {globals = {"exports"}} +files["test/app-tap/module_api.test.lua"] = {ignore = {"311"}} +files["test/app-tap/string.test.lua"] = {globals = {"utf8"}} +files["test/app-tap/tarantoolctl.test.lua"] = {ignore = {"113", "421"}} +files["test/box-tap/session.test.lua"] = { + globals = {"active_connections", "session", "space", "f1", "f2"}, + ignore = {"211"} +} +files["test/box/lua/push.lua"] = {globals = {"push_collection"}} +files["test/box/lua/index_random_test.lua"] = {globals = {"index_random_test"}} +files["test/box/lua/utils.lua"] = { + globals = {"space_field_types", "iterate", "arithmetic", "table_shuffle", + "table_generate", "tuple_to_string", "check_space", "space_bsize", + "create_iterator", "setmap", "sort"}} +files["test/box/lua/bitset.lua"] = { + globals = {"create_space", "fill", "delete", "clear", "drop_space", + "dump", "test_insert_delete"} +} +files["test/box/lua/fifo.lua"] = {globals = {"fifomax", "find_or_create_fifo", "fifo_push", "fifo_top"}} +files["test/box/lua/identifier.lua"] = {globals = {"run_test"}} +files["test/box/lua/require_mod.lua"] = {globals = {"exports"}} +files["test/luajit-tap/gh-4476-fix-string-find-recording.test.lua"] = {ignore = {"231"}} +files["test/luajit-tap/or-232-unsink-64-kptr.test.lua"] = {ignore = {"542"}} +files["test/replication/lua/fast_replica.lua"] = { + globals = {"join", "start_all", "stop_all", "wait_all", + "drop_all", "drop_all", "vclock_diff", "unregister", + "delete", "start", "stop", "call_all", "drop", "wait"}, + ignore = {"212", "213"} +} +files["test/sql-tap/*.lua"] = {ignore = {"611", "612", "613", "614", "621", "631", "211", "113", "111"}} +files["test/sql-tap/lua/sqltester.lua"] = {globals = {"table_match_regex_p"}} +files["test/sql-tap/e_expr.test.lua"] = {ignore = {"512"}} -- 2.23.0