luacheck fixes continued

This commit is contained in:
Mikayla Fischler 2023-05-05 14:04:28 -04:00
parent b2e21cb6d9
commit 30ba8bdccf
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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<br>
-- subtracts from spaces at the start if present for each comma used

View File

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