# HG changeset patch # User Matthew Wild # Date 1430936176 -3600 # Node ID 90e846e8a7880cc2cd4eb93b3def8c0de4c0a18b # Parent 30672cc3d8ee963ec5226d05c7d4c36d7763c321 modulemanager: Add luacheck annotations diff -r 30672cc3d8ee -r 90e846e8a788 core/modulemanager.lua --- a/core/modulemanager.lua Wed May 06 19:15:35 2015 +0100 +++ b/core/modulemanager.lua Wed May 06 19:16:16 2015 +0100 @@ -131,7 +131,7 @@ local _log = logger.init(host..":"..module_name); local host_module_api = setmetatable({ host = host, event_handlers = new_multitable(), items = {}; - _log = _log, log = function (self, ...) return _log(...); end; + _log = _log, log = function (self, ...) return _log(...); end; --luacheck: ignore 212/self },{ __index = modulemap["*"][module_name].module; }); @@ -152,8 +152,9 @@ local _log = logger.init(host..":"..module_name); local api_instance = setmetatable({ name = module_name, host = host, - _log = _log, log = function (self, ...) return _log(...); end, event_handlers = new_multitable(), - reloading = not not state, saved_state = state~=true and state or nil } + _log = _log, log = function (self, ...) return _log(...); end, --luacheck: ignore 212/self + event_handlers = new_multitable(), reloading = not not state, + saved_state = state~=true and state or nil } , { __index = api }); local pluginenv = setmetatable({ module = api_instance }, { __index = _G });