mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
possible luacheck fixes
This commit is contained in:
parent
30ba8bdccf
commit
5a139c2dd6
@ -113,7 +113,7 @@ end
|
|||||||
---@return table lines
|
---@return table lines
|
||||||
function util.strwrap(str, limit) return cc_strings.wrap(str, limit) end
|
function util.strwrap(str, limit) return cc_strings.wrap(str, limit) end
|
||||||
|
|
||||||
-- luacheck no unused args
|
-- luacheck: no unused args, no unused
|
||||||
|
|
||||||
-- concatenation with built-in to string
|
-- concatenation with built-in to string
|
||||||
---@nodiscard
|
---@nodiscard
|
||||||
@ -138,7 +138,7 @@ function util.sprintf(format, ...)
|
|||||||
return string.format(format, table.unpack(arg))
|
return string.format(format, table.unpack(arg))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- luacheck unused args
|
-- luacheck: unused args, unused
|
||||||
|
|
||||||
-- format a number string with commas as the thousands separator<br>
|
-- format a number string with commas as the thousands separator<br>
|
||||||
-- subtracts from spaces at the start if present for each comma used
|
-- subtracts from spaces at the start if present for each comma used
|
||||||
|
@ -166,7 +166,7 @@ function unit_session.new(session_id, unit_id, advert, out_queue, log_tag, txn_t
|
|||||||
|
|
||||||
-- PUBLIC TEMPLATE FUNCTIONS --
|
-- PUBLIC TEMPLATE FUNCTIONS --
|
||||||
|
|
||||||
-- luacheck no unused args
|
-- luacheck: no unused args
|
||||||
|
|
||||||
-- handle a packet
|
-- handle a packet
|
||||||
---@param m_pkt modbus_frame
|
---@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)
|
log.debug("template unit_session.update() called", true)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- luacheck unused args
|
-- luacheck: unused args
|
||||||
|
|
||||||
-- invalidate build cache
|
-- invalidate build cache
|
||||||
function public.invalidate_cache()
|
function public.invalidate_cache()
|
||||||
|
Loading…
Reference in New Issue
Block a user