From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 1B217CC307; Thu, 21 Jan 2021 15:53:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1B217CC307 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611233628; bh=Es/K4uwH1mhF53ezHZApCQmtyhKXBqBrxP0EnR/s/YA=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VSNdPKHJdqLpGWMmPrKCclB8BMnrs8oVlvOlKsgjkRT+aAHL+hVBAVGbEWGstCDfC CmMYkOrJBo09+ZuQ2mt0hUpyQ+/rbUFEBr2RjdRjckyvAcBlCLfOWuzfY0bmQo1lv1 41SAe7XVAuJsmt8UUS1w+rK6MR3S1iTU97l/SAk0= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 8AE5DCC307 for ; Thu, 21 Jan 2021 15:50:47 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8AE5DCC307 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1l2ZQE-0007wD-HD; Thu, 21 Jan 2021 15:50:47 +0300 To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Date: Thu, 21 Jan 2021 15:50:05 +0300 Message-Id: <2784ee79c0a4cdf900bc49821d50f44c9317d7e5.1611232655.git.sergeyb@tarantool.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9FAB20BF8F0759036F8D553AE972D0F0A4ECE5B46F21C4825182A05F53808504067420A8958D6F2510E2EE204569679ADFD322318B49549911784BAF146AC9EB5 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F0360CDCDD5D28C6EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063704C003DD579243BB8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FCEB69F05919F51CB4FA5976FC1FE39C876E8C958770D83C88389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C07E7E81EEA8A9722B8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B652D31B9D28593E51CC7F00164DA146DA6F5DAA56C3B73B23C77107234E2CFBA567F23339F89546C55F5C1EE8F4F765FC6F009C1859321A3875ECD9A6C639B01BBD4B6F7A4D31EC0BC0CAF46E325F83A522CA9DD8327EE4931B544F03EFBC4D57C2546860BDEA057BC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C2549B6A8B600A67A68130125F477BD83886ABE77DDD71FBE9C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF6EA1BA7CA28B4A74699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34B7CBFF60649FF266986CC8B9AD31E6EDA549830892B8CCEBB1C0A756092F0582E289E9E6AD4F28951D7E09C32AA3244C2CBD7BB23F51D5DCECF47FD27A31F450725D5B54B2FE4575927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojYT//mZRaUejLViVCPzmMUQ== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382208F9358D5BD2117DFF3ACB358AE59FF3DD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v8 07/14] test: fix luacheck warnings W231 in test/sql-tap X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: sergeyb@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov W231 (Local variable is set but never accessed) Part of #5464 --- .luacheckrc | 2 -- test/sql-tap/e_expr.test.lua | 19 ------------------- 2 files changed, 21 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 2e33cc05e..bfce2a6b4 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -51,8 +51,6 @@ exclude_files = { files["test/sql-tap/**/*.lua"] = { ignore = { - -- Local variable is set but never accessed. - "231", -- "Value assigned to a local variable is unused." "311", -- Unreachable code. diff --git a/test/sql-tap/e_expr.test.lua b/test/sql-tap/e_expr.test.lua index 5f8b206d3..b488bdc60 100755 --- a/test/sql-tap/e_expr.test.lua +++ b/test/sql-tap/e_expr.test.lua @@ -2486,10 +2486,6 @@ test:do_execsql_test( -- }) -local a, b, c -a = 0 -b = 0 -c = 0 local varlist = { } local function var(nm) table.insert(varlist,nm) @@ -2554,9 +2550,6 @@ test:do_test( -- evaluation of the THEN expression that corresponds to the first WHEN -- expression that evaluates to true. -- -a = 0 -b = 1 -c = 0 test:do_execsql_test( "e_expr-21.2.1", [[ @@ -2570,9 +2563,6 @@ test:do_execsql_test( "B" -- }) -a = 0 -b = 1 -c = 1 test:do_execsql_test( "e_expr-21.2.2", [[ @@ -2586,9 +2576,6 @@ test:do_execsql_test( "B" -- }) -a = 0 -b = 0 -c = 1 test:do_execsql_test( "e_expr-21.2.3", [[ @@ -2607,9 +2594,6 @@ test:do_execsql_test( -- evaluate to true, the result of evaluating the ELSE expression, if -- any. -- -a = 0 -b = 0 -c = 0 test:do_execsql_test( "e_expr-21.3.1", [[ @@ -2846,9 +2830,6 @@ test:do_execsql_test( -- or short-circuit, evaluation. -- varlist = {} -a = "0" -b = "1" -c = "0" test:do_execsql_test( "e_expr-25.1.1", [[ -- 2.25.1