aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-18 14:57:51 +0100
committerKim Alvefur <zash@zash.se>2016-02-18 14:57:51 +0100
commite349fb9c87b903509fdef01fbb08e4b1871f96b5 (patch)
tree0b6205b026211531455525fc1a9d4f7d8c0f7368
parentbad300a675f079ccf45da6cbaf07e55be7ed85f0 (diff)
downloadprosody-e349fb9c87b903509fdef01fbb08e4b1871f96b5.tar.gz
prosody-e349fb9c87b903509fdef01fbb08e4b1871f96b5.zip
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
-rw-r--r--core/loggingmanager.lua3
-rw-r--r--core/moduleapi.lua2
-rw-r--r--core/modulemanager.lua2
3 files changed, 4 insertions, 3 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index 14dd4360..e3a83817 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -16,7 +16,8 @@ local math_max, rep = math.max, string.rep;
local os_date = os.date;
local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring;
local tostring = tostring;
-local select, unpack = select, table.unpack or unpack;
+local select = select;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local config = require "core.configmanager";
local logger = require "util.logger";
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 9a0c5223..402c7927 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -20,7 +20,7 @@ local st = require "util.stanza";
local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
local error, setmetatable, type = error, setmetatable, type;
local ipairs, pairs, select = ipairs, pairs, select;
-local unpack = table.unpack or unpack;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local tonumber, tostring = tonumber, tostring;
local require = require;
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 5d030513..65542f9a 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -24,7 +24,7 @@ local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, t
local debug_traceback = debug.traceback;
local select = select;
-local unpack = table.unpack or unpack;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local pcall = function(f, ...)
local n = select("#", ...);
local params = {...};