From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Bronnikov <sergeyb@tarantool.org> Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Subject: Re: [Tarantool-patches] [PATCH 1/2] luacheck: fix warnings in test/box Date: Fri, 15 Jan 2021 23:32:33 +0300 [thread overview] Message-ID: <20210115203233.GB5460@tarantool.org> (raw) In-Reply-To: <ceeb4d04-27f5-1e0b-2940-55f8ff3c751a@tarantool.org> Sergey, Even I'm a bit late (Kirill is the fastest hand in the wild west^W^W Tarantool), I have a single nit regarding Serge question. On 15.01.21, Sergey Bronnikov via Tarantool-patches wrote: > Thanks for review! > > On 15.01.2021 15:39, Serge Petrenko wrote: > > <snipped> > >> diff --git a/test/box/gh-5304-insert_during_recovery.lua > >> b/test/box/gh-5304-insert_during_recovery.lua > >> index ac6eef342..c8b6c5cfb 100644 > >> --- a/test/box/gh-5304-insert_during_recovery.lua > >> +++ b/test/box/gh-5304-insert_during_recovery.lua > >> @@ -1,24 +1,24 @@ > >> #!/usr/bin/env tarantool > >> -function none(old_space, new_space) > >> +local function none(old_space, new_space) -- luacheck: ignore > > > > What's "luacheck: ignore" comment for? Haven't you fixed the warning > > already by introducing `local` ? > > > There are two warnings here. First one about global scope, that was > fixed with "local" and second one > > about unused parameters, that was suppressed by "luacheck: ignore". AFAICS there is a specific ignore reason for inline suppressions such as "no unused args" that is used in other Lua sources repo-wide (just grep for it). You can also see other available inline reasons here[1]. > > >> end <snipped> > > [1]: https://luacheck.readthedocs.io/en/stable/inline.html -- Best regards, IM
next prev parent reply other threads:[~2021-01-15 20:32 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-15 11:22 [Tarantool-patches] [PATCH 0/2] Fix new luacheck warnings in test/box-tap and test/box Sergey Bronnikov via Tarantool-patches 2021-01-15 11:22 ` [Tarantool-patches] [PATCH 1/2] luacheck: fix warnings in test/box Sergey Bronnikov via Tarantool-patches 2021-01-15 12:39 ` Serge Petrenko via Tarantool-patches 2021-01-15 12:54 ` Sergey Bronnikov via Tarantool-patches 2021-01-15 13:02 ` Serge Petrenko via Tarantool-patches 2021-01-15 20:32 ` Igor Munkin via Tarantool-patches [this message] 2021-01-15 11:22 ` [Tarantool-patches] [PATCH 2/2] luacheck: fix warnings in test/box-tap Sergey Bronnikov via Tarantool-patches 2021-01-15 12:40 ` Serge Petrenko via Tarantool-patches 2021-01-15 12:56 ` Sergey Bronnikov via Tarantool-patches 2021-01-15 13:03 ` Serge Petrenko via Tarantool-patches 2021-01-15 14:30 ` [Tarantool-patches] [PATCH 0/2] Fix new luacheck warnings in test/box-tap and test/box Kirill Yukhin via Tarantool-patches
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=20210115203233.GB5460@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 1/2] luacheck: fix warnings in test/box' \ /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