aboutsummaryrefslogtreecommitdiffstats
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
commit992b5622e99c0069fcd1dc39d0f91dd4870b698b (patch)
tree0074367e2c6855febdd214e4acf9a7f2e2c08528
parent2d1f009c46a7114d3a7014787ed4ff52229a67bc (diff)
downloadprosody-992b5622e99c0069fcd1dc39d0f91dd4870b698b.tar.gz
prosody-992b5622e99c0069fcd1dc39d0f91dd4870b698b.zip
luacheckrc: Reflow globals settings
-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