Software /
code /
prosody
Comparison
.luacheckrc @ 8674:55807a2f5d23
luacheckrc: Only allow top level declarations in the main prosody executable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Mar 2018 13:13:07 +0100 |
parent | 8582:6a2366759974 |
child | 8677:369cde73a4d2 |
comparison
equal
deleted
inserted
replaced
8673:6aeed79d9283 | 8674:55807a2f5d23 |
---|---|
1 cache = true | 1 cache = true |
2 allow_defined_top = true | |
3 unused_secondaries = false | 2 unused_secondaries = false |
4 codes = true | 3 codes = true |
5 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log" } | 4 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log" } |
6 | 5 |
7 max_line_length = 150 | 6 max_line_length = 150 |
9 read_globals = { | 8 read_globals = { |
10 "prosody", | 9 "prosody", |
11 "hosts", | 10 "hosts", |
12 "import", | 11 "import", |
13 }; | 12 }; |
13 files["prosody"] = { | |
14 allow_defined_top = true; | |
15 module = true; | |
16 } | |
14 files["core/"] = { | 17 files["core/"] = { |
15 globals = { | 18 globals = { |
16 "prosody.hosts.?", | 19 "prosody.hosts.?", |
17 "hosts.?", | 20 "hosts.?", |
18 }; | 21 }; |
21 -- Ignore unwrapped license text | 24 -- Ignore unwrapped license text |
22 max_comment_line_length = false; | 25 max_comment_line_length = false; |
23 } | 26 } |
24 files["plugins/"] = { | 27 files["plugins/"] = { |
25 module = true; | 28 module = true; |
29 allow_defined_top = true; | |
26 read_globals = { | 30 read_globals = { |
27 -- Module instance | 31 -- Module instance |
28 "module.name", | 32 "module.name", |
29 "module.host", | 33 "module.host", |
30 "module._log", | 34 "module._log", |