From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: Sergey Bronnikov <sergeyb@tarantool.org>, tarantool-patches@dev.tarantool.org, avtikhon@tarantool.org, alexander.turenko@tarantool.org, o.piskunov@tarantool.org Subject: Re: [Tarantool-patches] [PATCH 5/6] Add luacheck config Date: Wed, 15 Apr 2020 01:30:33 +0200 [thread overview] Message-ID: <d806d12b-8468-66fc-6e93-0c52a71b8c69@tarantool.org> (raw) In-Reply-To: <eb02cbc88357d25a313feb64246e7719f2054617.1586849129.git.sergeyb@tarantool.org> Thanks for the patch! Consider more fixes below and on the branch in a separate commit. ==================== Review fixes: luacheck diff --git a/.luacheckrc b/.luacheckrc index 83774d3f7..0862f7f2a 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -22,41 +22,36 @@ exclude_files = { ".git/**/*.lua", } -files["**/*.lua"] = {ignore = {"212", "122"}} -files["extra/dist/tarantoolctl.in"] = {ignore = {"431", "411", "122", "542", "212"}} -files["src/lua/help.lua"] = {globals = {"help", "tutorial"}, ignore = {"113", "211"}} +files["**/*.lua"] = { + globals = {"box", "_TARANTOOL", "help", "tutorial"}, + ignore = {"212", "122"} +} +files["extra/dist/tarantoolctl.in"] = {ignore = {"431", "122", "542", "212"}} files["src/lua/swim.lua"] = {ignore = {"431"}} files["src/lua/fio.lua"] = {ignore = {"231"}} files["src/lua/init.lua"] = {ignore = {"121"}} -files["src/lua/fiber.lua"] = {ignore = {"331", "311"}} +files["src/lua/fiber.lua"] = {ignore = {"331"}} files["src/box/lua/serpent.lua"] = {globals = {"_ENV"}, ignore = {"431", "421", "631", "432", "542", "412", "422"}} -files["src/box/lua/load_cfg.lua"] = {ignore = {"431", "143", "311", "542"}} -files["src/box/lua/net_box.lua"] = {ignore = {"431", "211", "421", "432", "311", "231", "411", "412"}} -files["src/box/lua/schema.lua"] = {globals = {"update_format", "iid", "role_check_grant_revoke_of_sys_priv"}, ignore = {"431", "211", "421", "213", "432", "311", "542", "412"}} -files["src/box/lua/key_def.lua"] = {ignore = {"431"}} -files["src/box/lua/feedback_daemon.lua"] = {ignore = {"211"}} -files["src/box/lua/tuple.lua"] = {ignore = {"211", "421", "412"}} -files["src/box/lua/upgrade.lua"] = {ignore = {"211", "421", "213"}} -files["src/box/lua/console.lua"] = {globals = {"help"}, ignore = {"211", "143"}} +files["src/box/lua/load_cfg.lua"] = {ignore = {"431", "143", "542"}} +files["src/box/lua/net_box.lua"] = {ignore = {"431", "432", "231", "411",}} +files["src/box/lua/schema.lua"] = {ignore = {"431", "213", "432", "542"}} +files["src/box/lua/upgrade.lua"] = {ignore = {"213"}} files["test-run/test_run.lua"] = {ignore = {"412", "211", "431"}} files["test-run/lib/tarantool-python/test/cluster-py/master.lua"] = {ignore = {"121"}} files["test-run/lib/tarantool-python/unit/suites/box.lua"] = {ignore = {"121"}} files["test/**/*.lua"] = {ignore = {"631", "611", "614", "613", "612", "621", "112", "211", "432"}} -files["test/app/*.lua"] = {ignore = {"111", "113"}} files["test/app/lua/fiber.lua"] = {ignore = {"111"}} files["test/app-tap/*.lua"] = {ignore = {"111", "113", "411", "431"}} files["test/app-tap/yaml.test.lua"] = {ignore = {"311"}} files["test/app-tap/module_api.test.lua"] = {ignore = {"311"}} files["test/app-tap/debug.test.lua"] = {ignore = {"421"}} -files["test/app-tap/console_lua.test.lua"] = {ignore = {"412"}} files["test/app-tap/string.test.lua"] = {ignore = {"311"}} files["test/app-tap/logger.test.lua"] = {ignore = {"231"}} files["test/app-tap/snapshot.test.lua"] = {ignore = {"213"}} files["test/app-tap/msgpackffi.test.lua"] = {ignore = {"213"}} files["test/app-tap/http_client.test.lua"] = {ignore = {"213", "422", "412", "311"}} -files["test/app-tap/fail_main.test.lua"] = {ignore = {"412"}} -files["test/app-tap/tarantoolctl.test.lua"] = {ignore = {"511", "421"}} -files["test/app-tap/lua/require_mod.lua"] = {ignore = {"113", "111"}} +files["test/app-tap/tarantoolctl.test.lua"] = {ignore = {"421"}} +files["test/app-tap/lua/require_mod.lua"] = {globals = {"exports"}} files["test/box/admin.test.lua"] = {ignore = {"213"}} files["test/box/lua/*.lua"] = {ignore = {"111"}} files["test/box/*.lua"] = {ignore = {"111", "113"}}
next prev parent reply other threads:[~2020-04-14 23:30 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-14 7:55 [Tarantool-patches] [PATCH v3 0/6] Add static analysis with luacheck Sergey Bronnikov 2020-04-14 7:56 ` [Tarantool-patches] [PATCH 1/6] Fix luacheck warnings in src/lua/ Sergey Bronnikov 2020-04-14 23:29 ` Vladislav Shpilevoy 2020-04-15 20:51 ` Igor Munkin 2020-04-15 21:40 ` Vladislav Shpilevoy 2020-04-17 9:07 ` Sergey Bronnikov 2020-04-17 9:09 ` Sergey Bronnikov 2020-04-15 20:51 ` Igor Munkin 2020-04-15 21:46 ` Vladislav Shpilevoy 2020-04-16 13:52 ` Igor Munkin 2020-04-17 9:26 ` Sergey Bronnikov 2020-04-17 12:13 ` Igor Munkin 2020-04-14 7:57 ` [Tarantool-patches] [PATCH 2/6] Fix luacheck warnings in test/ Sergey Bronnikov 2020-04-14 23:29 ` Vladislav Shpilevoy 2020-04-17 12:05 ` Igor Munkin 2020-04-17 19:51 ` Sergey Bronnikov 2020-04-17 19:47 ` Sergey Bronnikov 2020-04-16 13:43 ` Igor Munkin 2020-04-14 7:57 ` [Tarantool-patches] [PATCH 3/6] Fix luacheck warnings in src/box/lua/ Sergey Bronnikov 2020-04-14 23:30 ` Vladislav Shpilevoy 2020-04-14 7:58 ` [Tarantool-patches] [PATCH 4/6] Fix luacheck warnings in extra/dist/tarantoolctl.in Sergey Bronnikov 2020-04-14 23:30 ` Vladislav Shpilevoy 2020-04-15 15:35 ` Igor Munkin 2020-04-14 8:01 ` [Tarantool-patches] [PATCH 5/6] Add luacheck config Sergey Bronnikov 2020-04-14 23:30 ` Vladislav Shpilevoy [this message] 2020-04-14 8:01 ` [Tarantool-patches] [PATCH 6/6] gitlab-ci: enable static analysis with luacheck Sergey Bronnikov 2020-04-14 23:30 ` [Tarantool-patches] [PATCH v3 7/6] schema: fix index promotion to functional index Vladislav Shpilevoy 2020-04-14 23:30 ` [Tarantool-patches] [PATCH v3 8/6] schema: fix internal symbols dangling in _G Vladislav Shpilevoy
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=d806d12b-8468-66fc-6e93-0c52a71b8c69@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=avtikhon@tarantool.org \ --cc=o.piskunov@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 5/6] Add luacheck config' \ /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