AP_Scripting: tests: ignore luacheck warnings

This commit is contained in:
Iampete1 2023-02-14 02:45:35 +00:00 committed by Andrew Tridgell
parent 03167d41db
commit e2fe2d3c57
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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