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
commit3263d4b39094c5d4bbbc42fd59d3166c84dd901e (patch)
tree3665d7c92ea420a7d6eaadf5c21c8d85711de809 /.luacheckrc
parentadc3b7267280e303d9f93e602dea051ed7fddcf5 (diff)
downloadprosody-3263d4b39094c5d4bbbc42fd59d3166c84dd901e.tar.gz
prosody-3263d4b39094c5d4bbbc42fd59d3166c84dd901e.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",