aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-28 20:06:26 +0100
committerKim Alvefur <zash@zash.se>2018-02-28 20:06:26 +0100
commit43b814a83bc1e20d15d3cd38ddcf108d8e3ca356 (patch)
tree0f24fe5bf868191f9e33931f28c9db16e098d2bb /core
parent8e377a8d5586e64f4c75e0b40e7b84de6e2a7972 (diff)
downloadprosody-43b814a83bc1e20d15d3cd38ddcf108d8e3ca356.tar.gz
prosody-43b814a83bc1e20d15d3cd38ddcf108d8e3ca356.zip
vairious: Add annotation when an empty environment is set [luacheck]
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua1
-rw-r--r--core/configmanager.lua1
-rw-r--r--core/hostmanager.lua1
-rw-r--r--core/loggingmanager.lua1
-rw-r--r--core/modulemanager.lua1
-rw-r--r--core/portmanager.lua1
-rw-r--r--core/rostermanager.lua1
-rw-r--r--core/s2smanager.lua1
-rw-r--r--core/sessionmanager.lua1
-rw-r--r--core/storagemanager.lua1
-rw-r--r--core/usermanager.lua1
11 files changed, 11 insertions, 0 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 1cbdac5d..3c1bd454 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -55,6 +55,7 @@ local luasec_has = softreq"ssl.config" or {
};
local _ENV = nil;
+-- luacheck: std none
-- Global SSL options if not overridden per-host
local global_ssl_config = configmanager.get("*", "ssl");
diff --git a/core/configmanager.lua b/core/configmanager.lua
index bb55d3f8..111c22a1 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -24,6 +24,7 @@ local nameprep = encodings and encodings.stringprep.nameprep or function (host)
local _M = {};
local _ENV = nil;
+-- luacheck: std none
_M.resolve_relative_path = resolve_relative_path; -- COMPAT
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 54944e29..43dabf99 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -27,6 +27,7 @@ local tostring, type = tostring, type;
local setmetatable = setmetatable;
local _ENV = nil;
+-- luacheck: std none
local host_mt = { }
function host_mt:__tostring()
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index 004f4c3b..7fab30df 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -24,6 +24,7 @@ _G.log = logger.init("general");
prosody.log = logger.init("general");
local _ENV = nil;
+-- luacheck: std none
-- The log config used if none specified in the config file (see reload_logging for initialization)
local default_logging;
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 771f6fb1..c23043df 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -38,6 +38,7 @@ local component_inheritable_modules = {"tls", "saslauth", "dialback", "iq", "s2s
local _G = _G;
local _ENV = nil;
+-- luacheck: std none
local load_modules_for_host, load, unload, reload, get_module, get_items;
local get_modules, is_loaded, module_has_method, call_module_method;
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 5b6476f3..1ed37da0 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -15,6 +15,7 @@ local prosody = prosody;
local fire_event = prosody.events.fire_event;
local _ENV = nil;
+-- luacheck: std none
--- Config
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 65be0de0..c8b94734 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -23,6 +23,7 @@ local st = require "util.stanza";
local storagemanager = require "core.storagemanager";
local _ENV = nil;
+-- luacheck: std none
local save_roster; -- forward declaration
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 1e8b1120..de13b3eb 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -23,6 +23,7 @@ local incoming_s2s = incoming_s2s;
local fire_event = prosody.events.fire_event;
local _ENV = nil;
+-- luacheck: std none
local function new_incoming(conn)
local session = { conn = conn, type = "s2sin_unauthed", direction = "incoming", hosts = {} };
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index e9771c58..4f2b3ecc 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -26,6 +26,7 @@ local initialize_filters = require "util.filters".initialize;
local gettime = require "socket".gettime;
local _ENV = nil;
+-- luacheck: std none
local function new_session(conn)
local session = { conn = conn, type = "c2s_unauthed", conntime = gettime() };
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 1c0ef3bb..0aac947d 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -12,6 +12,7 @@ local log = require "util.logger".init("storagemanager");
local prosody = prosody;
local _ENV = nil;
+-- luacheck: std none
local olddm = {}; -- maintain old datamanager, for backwards compatibility
for k,v in pairs(datamanager) do olddm[k] = v; end
diff --git a/core/usermanager.lua b/core/usermanager.lua
index f795e8ae..ca1666ed 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -24,6 +24,7 @@ local setmetatable = setmetatable;
local default_provider = "internal_plain";
local _ENV = nil;
+-- luacheck: std none
local function new_null_provider()
local function dummy() return nil, "method not implemented"; end;