--- a/.luacheckrc Sat Mar 04 20:06:29 2017 +0100
+++ b/.luacheckrc Sat Mar 04 20:09:28 2017 +0100
@@ -10,7 +10,8 @@
max_line_length = 150
files["core/"] = {
- ignore = { "122/prosody", "122/hosts" };
+ read_globals = { "prosody", "hosts" };
+ globals = { "prosody.hosts.?", "hosts.?" };
}
files["plugins/"] = {
globals = { "module" };
--- a/core/loggingmanager.lua Sat Mar 04 20:06:29 2017 +0100
+++ b/core/loggingmanager.lua Sat Mar 04 20:09:28 2017 +0100
@@ -5,7 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-
+-- luacheck: globals log prosody.log
local format = string.format;
local setmetatable, rawset, pairs, ipairs, type =
--- a/core/rostermanager.lua Sat Mar 04 20:06:29 2017 +0100
+++ b/core/rostermanager.lua Sat Mar 04 20:09:28 2017 +0100
@@ -5,7 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-
+-- luacheck: globals prosody.bare_sessions.?.roster
--- a/core/sessionmanager.lua Sat Mar 04 20:06:29 2017 +0100
+++ b/core/sessionmanager.lua Sat Mar 04 20:09:28 2017 +0100
@@ -5,6 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
+-- luacheck: globals prosody.full_sessions prosody.bare_sessions
local tostring, setmetatable = tostring, setmetatable;
local pairs, next= pairs, next;