Comparison

.luacheckrc @ 4757:8e22b858628f

luacheck: Discourage use of the 'hosts' global (like in Prosody) Shorter name for prosody.hosts which is more explicit. Having fewer globals is better.
author Kim Alvefur <zash@zash.se>
date Sun, 07 Nov 2021 14:18:47 +0100
parent 4756:098e3b3aac9c
child 4971:bc78424968b2
comparison
equal deleted inserted replaced
4756:098e3b3aac9c 4757:8e22b858628f
3 max_line_length = 150 3 max_line_length = 150
4 codes = true 4 codes = true
5 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }; 5 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" };
6 read_globals = { 6 read_globals = {
7 "prosody", 7 "prosody",
8 "hosts",
9 "import", 8 "import",
10 9
11 -- Module instance 10 -- Module instance
12 "module.name", 11 "module.name",
13 "module.host", 12 "module.host",