From: sergeyb@tarantool.org To: tarantool-patches@dev.tarantool.org Cc: o.piskunov@tarantool.org, Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Subject: [Tarantool-patches] [PATCH v5 06/10] Fix luacheck warnings in src/box/lua/ Date: Tue, 12 May 2020 12:50:03 +0300 [thread overview] Message-ID: <bfd2eef07d9c52a860a649b420d0a29f72ce0090.1589275364.git.sergeyb@tarantool.org> (raw) In-Reply-To: <cover.1589275364.git.sergeyb@tarantool.org> From: Sergey Bronnikov <sergeyb@tarantool.org> Closes #4681 Reviewed-by: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Co-authored-by: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> --- .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
next prev parent reply other threads:[~2020-05-12 9:53 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-12 9:49 [Tarantool-patches] [PATCH v5 00/10] Add static analysis with luacheck sergeyb 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 01/10] Add initial luacheck config sergeyb 2020-05-26 22:15 ` Igor Munkin 2020-05-28 15:31 ` Sergey Bronnikov 2020-05-28 16:07 ` Sergey Bronnikov 2020-05-29 11:20 ` Igor Munkin 2020-11-10 14:30 ` Sergey Bronnikov 2020-11-10 14:49 ` Igor Munkin 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 02/10] gitlab-ci: enable static analysis with luacheck sergeyb 2020-05-13 14:15 ` Alexander V. Tikhonov 2020-05-13 14:40 ` Sergey Bronnikov 2020-05-26 22:39 ` Igor Munkin 2020-05-28 10:03 ` Sergey Bronnikov 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 03/10] Fix luacheck warnings in extra/dist/tarantoolctl.in sergeyb 2020-05-26 23:11 ` Igor Munkin 2020-05-28 10:13 ` Sergey Bronnikov 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 04/10] Fix luacheck warnings in src/lua/ sergeyb 2020-05-27 11:22 ` Igor Munkin 2020-05-28 12:22 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 05/10] " sergeyb 2020-05-13 11:13 ` Sergey Bronnikov 2020-05-27 11:22 ` Igor Munkin 2020-05-12 9:50 ` sergeyb [this message] 2020-05-27 16:54 ` [Tarantool-patches] [PATCH v5 06/10] Fix luacheck warnings in src/box/lua/ Igor Munkin 2020-05-28 15:16 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 07/10] " sergeyb 2020-05-13 11:14 ` Sergey Bronnikov 2020-05-27 16:54 ` Igor Munkin 2020-05-28 11:19 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 08/10] Fix luacheck warnings in test/ sergeyb 2020-05-29 11:08 ` Igor Munkin 2020-05-29 14:08 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 09/10] Add luacheck supressions for luajit tests sergeyb 2020-05-26 20:45 ` Igor Munkin 2020-05-28 19:25 ` Sergey Bronnikov 2020-05-12 12:28 ` [Tarantool-patches] [PATCH 10/10] build: Enable 'make luacheck' target Sergey Bronnikov 2020-05-26 20:45 ` Igor Munkin 2020-05-28 9:59 ` Sergey Bronnikov 2020-05-26 20:38 ` [Tarantool-patches] [PATCH v5 11/10] test: fix warnings spotted by luacheck sergeyb
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bfd2eef07d9c52a860a649b420d0a29f72ce0090.1589275364.git.sergeyb@tarantool.org \ --to=sergeyb@tarantool.org \ --cc=o.piskunov@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v5 06/10] Fix luacheck warnings in src/box/lua/' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox