Changeset

7163:eadbf19d0de0

loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
author Kim Alvefur <zash@zash.se>
date Thu, 18 Feb 2016 14:57:51 +0100
parents 7162:d0b64f1e4f5d
children 7164:af26e8eb591f 7165:f0e6757261bc
files core/loggingmanager.lua core/moduleapi.lua core/modulemanager.lua
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/core/loggingmanager.lua	Thu Feb 18 14:57:04 2016 +0100
+++ b/core/loggingmanager.lua	Thu Feb 18 14:57:51 2016 +0100
@@ -16,7 +16,8 @@
 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";
--- a/core/moduleapi.lua	Thu Feb 18 14:57:04 2016 +0100
+++ b/core/moduleapi.lua	Thu Feb 18 14:57:51 2016 +0100
@@ -20,7 +20,7 @@
 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;
 
--- a/core/modulemanager.lua	Thu Feb 18 14:57:04 2016 +0100
+++ b/core/modulemanager.lua	Thu Feb 18 14:57:51 2016 +0100
@@ -24,7 +24,7 @@
 
 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 = {...};