aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-07 19:19:56 +0100
committerKim Alvefur <zash@zash.se>2018-03-07 19:19:56 +0100
commitf3d5f41d6a035ba85894f9cded9e0c2c0444d50a (patch)
tree0074367e2c6855febdd214e4acf9a7f2e2c08528 /.luacheckrc
parent2b24859b36170f9d5d5d329f27fd0346ec9a6ea3 (diff)
downloadprosody-f3d5f41d6a035ba85894f9cded9e0c2c0444d50a.tar.gz
prosody-f3d5f41d6a035ba85894f9cded9e0c2c0444d50a.zip
luacheckrc: Reflow globals settings
Diffstat (limited to '.luacheckrc')
-rw-r--r--.luacheckrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 41ae1495..25e422c6 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -1,5 +1,4 @@
cache = true
-read_globals = { "prosody", "hosts", "import" }
globals = { "_M" }
allow_defined_top = true
module = true
@@ -9,9 +8,16 @@ ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log" }
max_line_length = 150
+read_globals = {
+ "prosody",
+ "hosts",
+ "import",
+};
files["core/"] = {
- read_globals = { "prosody", "hosts" };
- globals = { "prosody.hosts.?", "hosts.?" };
+ globals = {
+ "prosody.hosts.?",
+ "hosts.?",
+ };
}
files["util/"] = {
-- Ignore unwrapped license text