From c723d21b83a0d219f1087459f48c863e38910bcf Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 4 Mar 2017 20:06:29 +0100 Subject: luacheckrc: Set max line length to 150 for now [luacheck] --- .luacheckrc | 2 ++ 1 file changed, 2 insertions(+) (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc index 80c903c3..4d7ae76e 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -7,6 +7,8 @@ unused_secondaries = false codes = true ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" } +max_line_length = 150 + files["core/"] = { ignore = { "122/prosody", "122/hosts" }; } -- cgit v1.2.3 From e45c5961ac42007aa6c9282afddff91cd1e27124 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 4 Mar 2017 20:09:28 +0100 Subject: core: Allow select core modules to mutate some globals (needs luacheck 1.19) --- .luacheckrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.luacheckrc') 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" }; -- cgit v1.2.3