From 3263d4b39094c5d4bbbc42fd59d3166c84dd901e 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(-) 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