From e2fe2d3c571f28203591960daf7d19941dd6ad82 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 14 Feb 2023 02:45:35 +0000 Subject: [PATCH] AP_Scripting: tests: ignore luacheck warnings --- libraries/AP_Scripting/tests/math.lua | 6 ++++++ libraries/AP_Scripting/tests/strings.lua | 2 ++ 2 files changed, 8 insertions(+) diff --git a/libraries/AP_Scripting/tests/math.lua b/libraries/AP_Scripting/tests/math.lua index bd708b7269..4cfeb4ffe4 100644 --- a/libraries/AP_Scripting/tests/math.lua +++ b/libraries/AP_Scripting/tests/math.lua @@ -27,6 +27,12 @@ -- This code is copied from https://github.com/lua/tests and slightly modified to work within ArduPilot +-- luacheck: ignore 211 (Unused local variable) +-- luacheck: ignore 213 (Unused loop variable) +-- luacheck: ignore 411 (Redefining a local variable) +-- luacheck: ignore 421 (Shadowing a local variable) +-- luacheck: ignore 581 (Negation of a relational operator - operator can be flipped) + gcs:send_text(6, "testing numbers and math lib") local minint = math.mininteger diff --git a/libraries/AP_Scripting/tests/strings.lua b/libraries/AP_Scripting/tests/strings.lua index 4200e2cfe3..79fde4c4fb 100644 --- a/libraries/AP_Scripting/tests/strings.lua +++ b/libraries/AP_Scripting/tests/strings.lua @@ -27,6 +27,8 @@ -- This code is copied from https://github.com/lua/tests and slightly modified to work within ArduPilot +-- luacheck: ignore 581 (Negation of a relational operator - operator can be flipped) + gcs:send_text(6, 'testing strings and string library') local maxi, mini = math.maxinteger, math.mininteger