diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index da24e11..262f012 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/scada-common/util.lua b/scada-common/util.lua index e13f9fc..5f2f34b 100644 --- a/scada-common/util.lua +++ b/scada-common/util.lua @@ -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