aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-23 13:13:07 +0100
committerKim Alvefur <zash@zash.se>2018-03-23 13:13:07 +0100
commitce0661a23b01b9ce1c5365cd9a15990c364605df (patch)
tree3665d7c92ea420a7d6eaadf5c21c8d85711de809 /.luacheckrc
parent8858b071033633f2b06c7985b436fb2311dcb144 (diff)
downloadprosody-ce0661a23b01b9ce1c5365cd9a15990c364605df.tar.gz
prosody-ce0661a23b01b9ce1c5365cd9a15990c364605df.zip
luacheckrc: Only allow top level declarations in the main prosody executable
Diffstat (limited to '.luacheckrc')
-rw-r--r--.luacheckrc6
1 files changed, 5 insertions, 1 deletions
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",