aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-04 20:09:28 +0100
committerKim Alvefur <zash@zash.se>2017-03-04 20:09:28 +0100
commite45c5961ac42007aa6c9282afddff91cd1e27124 (patch)
treec6228dea80fc393abf6eaf11909eca109d0cd30e /.luacheckrc
parentc723d21b83a0d219f1087459f48c863e38910bcf (diff)
downloadprosody-e45c5961ac42007aa6c9282afddff91cd1e27124.tar.gz
prosody-e45c5961ac42007aa6c9282afddff91cd1e27124.zip
core: Allow select core modules to mutate some globals (needs luacheck 1.19)
Diffstat (limited to '.luacheckrc')
-rw-r--r--.luacheckrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 4d7ae76e..0040cfbb 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -10,7 +10,8 @@ ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }
max_line_length = 150
files["core/"] = {
- ignore = { "122/prosody", "122/hosts" };
+ read_globals = { "prosody", "hosts" };
+ globals = { "prosody.hosts.?", "hosts.?" };
}
files["plugins/"] = {
globals = { "module" };