diff --git a/.luacheckrc b/.luacheckrc index 1a65401..7e8c108 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -9,6 +9,7 @@ exclude_files = { "mods/treasurer", } +ignore = {"631"} globals = { "crafting", "vector", "table", "minetest", diff --git a/mods/ctf_alloc/init.lua b/mods/ctf_alloc/init.lua index aa4b232..cc0d9d1 100644 --- a/mods/ctf_alloc/init.lua +++ b/mods/ctf_alloc/init.lua @@ -29,7 +29,7 @@ end, { } }) -function table.map_inplace(t, f) +function table.map_inplace(t, f) -- luacheck: ignore for key, value in pairs(t) do t[key] = f(value) end diff --git a/mods/random_messages/init.lua b/mods/random_messages/init.lua index 9a36aa1..eb14c52 100644 --- a/mods/random_messages/init.lua +++ b/mods/random_messages/init.lua @@ -11,13 +11,13 @@ math.randomseed(os.time()) random_messages = {} random_messages.messages = {} --This table contains all messages. -function table.count( t ) +function table.count( t ) -- luacheck: ignore local i = 0 for k in pairs( t ) do i = i + 1 end return i end -function table.random( t ) +function table.random( t ) -- luacheck: ignore local rk = math.random( 1, table.count( t ) ) local i = 1 for k, v in pairs( t ) do