From ce0661a23b01b9ce1c5365cd9a15990c364605df Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 23 Mar 2018 13:13:07 +0100 Subject: luacheckrc: Only allow top level declarations in the main prosody executable --- .luacheckrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc index 2b90eebb..978f12de 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,5 +1,4 @@ cache = true -allow_defined_top = true unused_secondaries = false codes = true ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log" } @@ -11,6 +10,10 @@ read_globals = { "hosts", "import", }; +files["prosody"] = { + allow_defined_top = true; + module = true; +} files["core/"] = { globals = { "prosody.hosts.?", @@ -23,6 +26,7 @@ files["util/"] = { } files["plugins/"] = { module = true; + allow_defined_top = true; read_globals = { -- Module instance "module.name", -- cgit v1.2.3