[Tarantool-patches] [PATCH v8 06/14] test: fix laucheck warnings W213 in test/sql-tap

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sun Jan 24 20:35:10 MSK 2021


Thanks for the patch!

On 21.01.2021 13:50, sergeyb at tarantool.org wrote:
> From: Sergey Bronnikov <sergeyb at tarantool.org>
> 
> W213 (Unused loop variable)
> 
> Part of #5464
> ---
> diff --git a/test/sql-tap/gh-3083-ephemeral-unref-tuples.test.lua b/test/sql-tap/gh-3083-ephemeral-unref-tuples.test.lua
> index 0b7c3ca32..57302811b 100755
> --- a/test/sql-tap/gh-3083-ephemeral-unref-tuples.test.lua
> +++ b/test/sql-tap/gh-3083-ephemeral-unref-tuples.test.lua
> @@ -12,7 +12,7 @@ test:do_test(
>  			box.execute("insert into test(id, k) values(" .. i .. "," .. i .. ")")
>  		end
>  
> -		for i = 1, 10000 do
> +		for i = 1, 10000 do -- luacheck: ignore unused i

Why do you ignore it here, and replace with _ in some other places?


More information about the Tarantool-patches mailing list