diff --git a/coordinator/iocontrol.lua b/coordinator/iocontrol.lua index 8d7a7a0..58085b1 100644 --- a/coordinator/iocontrol.lua +++ b/coordinator/iocontrol.lua @@ -18,14 +18,14 @@ local iocontrol = {} ---@class ioctl local io = {} --- luacheck push ignore success +-- 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 pop +-- 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 e5cfd75..33f542e 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 push no unused args +-- 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 pop +-- 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 diff --git a/supervisor/session/rtu/unit_session.lua b/supervisor/session/rtu/unit_session.lua index 741d609..0b0c5d8 100644 --- a/supervisor/session/rtu/unit_session.lua +++ b/supervisor/session/rtu/unit_session.lua @@ -166,7 +166,7 @@ function unit_session.new(session_id, unit_id, advert, out_queue, log_tag, txn_t -- PUBLIC TEMPLATE FUNCTIONS -- --- luacheck push no unused args +-- luacheck no unused args -- handle a packet ---@param m_pkt modbus_frame @@ -182,7 +182,7 @@ function unit_session.new(session_id, unit_id, advert, out_queue, log_tag, txn_t log.debug("template unit_session.update() called", true) end --- luacheck pop +-- luacheck unused args -- invalidate build cache function public.invalidate_cache()