luacheck: Discourage use of the 'hosts' global (like in Prosody)
authorKim Alvefur <zash@zash.se>
Sun, 07 Nov 2021 14:18:47 +0100
changeset 4761 8e22b858628f
parent 4760 098e3b3aac9c
child 4762 b9af1ccac98b
child 4764 367a8020bd92
luacheck: Discourage use of the 'hosts' global (like in Prosody) Shorter name for prosody.hosts which is more explicit. Having fewer globals is better.
.luacheckrc
--- a/.luacheckrc	Sun Nov 07 14:17:29 2021 +0100
+++ b/.luacheckrc	Sun Nov 07 14:18:47 2021 +0100
@@ -5,7 +5,6 @@
 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" };
 read_globals = {
 	"prosody",
-	"hosts",
 	"import",
 
 	-- Module instance