mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
unused vararg suppression, re-enable unused args luacheck
This commit is contained in:
parent
0778a442b1
commit
464451c378
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -29,4 +29,4 @@ jobs:
|
||||
# --no-max-line-length = Disable warnings for long line lengths
|
||||
# --exclude-files ... = Exclude lockbox library (external) and config files
|
||||
# --globals ... = Override all globals overridden in .vscode/settings.json AND 'os' since CraftOS 'os' differs from Lua's 'os'
|
||||
args: . --no-max-line-length -a -i 121 512 542 --exclude-files ./lockbox/* ./*/config.lua --globals os _HOST bit colors fs http parallel periphemu peripheral read rs settings shell term textutils window
|
||||
args: . --no-max-line-length -i 121 512 542 --exclude-files ./lockbox/* ./*/config.lua --globals os _HOST bit colors fs http parallel periphemu peripheral read rs settings shell term textutils window
|
||||
|
@ -117,6 +117,7 @@ function util.strwrap(str, limit) return cc_strings.wrap(str, limit) end
|
||||
---@nodiscard
|
||||
---@vararg any
|
||||
---@return string
|
||||
---@diagnostic disable-next-line: unused-vararg
|
||||
function util.concat(...)
|
||||
local str = ""
|
||||
for _, v in ipairs(arg) do str = str .. util.strval(v) end
|
||||
@ -130,6 +131,7 @@ util.c = util.concat
|
||||
---@nodiscard
|
||||
---@param format string
|
||||
---@vararg any
|
||||
---@diagnostic disable-next-line: unused-vararg
|
||||
function util.sprintf(format, ...)
|
||||
return string.format(format, table.unpack(arg))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user