From 0e1f23efe8e4beeb59202a96833d60c91513aa83 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Fri, 5 May 2023 14:09:50 -0400 Subject: [PATCH] fixed luacheck comments --- coordinator/iocontrol.lua | 4 ++-- scada-common/util.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coordinator/iocontrol.lua b/coordinator/iocontrol.lua index 58085b1..24e839c 100644 --- a/coordinator/iocontrol.lua +++ b/coordinator/iocontrol.lua @@ -18,14 +18,14 @@ local iocontrol = {} ---@class ioctl local io = {} --- luacheck no unused args +-- luacheck: no unused args -- placeholder acknowledge function for type hinting ---@param success boolean ---@diagnostic disable-next-line: unused-local local function __generic_ack(success) end --- luacheck unused args +-- luacheck: unused args -- initialize the coordinator IO controller ---@param conf facility_conf configuration diff --git a/scada-common/util.lua b/scada-common/util.lua index f14632f..063143c 100644 --- a/scada-common/util.lua +++ b/scada-common/util.lua @@ -113,7 +113,7 @@ end ---@return table lines function util.strwrap(str, limit) return cc_strings.wrap(str, limit) end --- luacheck: no unused args, no unused +-- luacheck: no unused args -- concatenation with built-in to string ---@nodiscard @@ -138,7 +138,7 @@ function util.sprintf(format, ...) return string.format(format, table.unpack(arg)) end --- luacheck: unused args, unused +-- luacheck: unused args -- format a number string with commas as the thousands separator
-- subtracts from spaces at the start if present for each comma used