Software /
code /
prosody
Comparison
.luacheckrc @ 7957:083c062c2fb7
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Mar 2017 15:31:21 +0100 |
parent | 7953:d183ff55442f |
child | 7981:bbb900cfcfa5 |
comparison
equal
deleted
inserted
replaced
7950:f91e7ec9654e | 7957:083c062c2fb7 |
---|---|
3 globals = { "_M" } | 3 globals = { "_M" } |
4 allow_defined_top = true | 4 allow_defined_top = true |
5 module = true | 5 module = true |
6 unused_secondaries = false | 6 unused_secondaries = false |
7 codes = true | 7 codes = true |
8 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" } | 8 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log" } |
9 | 9 |
10 max_line_length = 150 | 10 max_line_length = 150 |
11 | 11 |
12 files["core/"] = { | 12 files["core/"] = { |
13 read_globals = { "prosody", "hosts" }; | 13 read_globals = { "prosody", "hosts" }; |
14 globals = { "prosody.hosts.?", "hosts.?" }; | 14 globals = { "prosody.hosts.?", "hosts.?" }; |
15 } | 15 } |
16 files["plugins/"] = { | 16 files["plugins/"] = { |
17 globals = { "module" }; | 17 read_globals = { |
18 -- Module instance | |
19 "module.name", | |
20 "module.host", | |
21 "module._log", | |
22 "module.log", | |
23 "module.event_handlers", | |
24 "module.reloading", | |
25 "module.saved_state", | |
26 "module.environment", | |
27 "module.global", | |
28 "module.path", | |
29 | |
30 -- Module API | |
31 "module.add_extension", | |
32 "module.add_feature", | |
33 "module.add_identity", | |
34 "module.add_item", | |
35 "module.add_timer", | |
36 "module.broadcast", | |
37 "module.context", | |
38 "module.depends", | |
39 "module.fire_event", | |
40 "module.get_directory", | |
41 "module.get_host", | |
42 "module.get_host_items", | |
43 "module.get_host_type", | |
44 "module.get_name", | |
45 "module.get_option", | |
46 "module.get_option_array", | |
47 "module.get_option_boolean", | |
48 "module.get_option_inherited_set", | |
49 "module.get_option_number", | |
50 "module.get_option_path", | |
51 "module.get_option_set", | |
52 "module.get_option_string", | |
53 "module.handle_items", | |
54 "module.has_feature", | |
55 "module.has_identity", | |
56 "module.hook", | |
57 "module.hook_global", | |
58 "module.hook_object_event", | |
59 "module.hook_tag", | |
60 "module.load_resource", | |
61 "module.measure", | |
62 "module.measure_event", | |
63 "module.measure_global_event", | |
64 "module.measure_object_event", | |
65 "module.open_store", | |
66 "module.provides", | |
67 "module.remove_item", | |
68 "module.require", | |
69 "module.send", | |
70 "module.set_global", | |
71 "module.shared", | |
72 "module.unhook", | |
73 "module.unhook_object_event", | |
74 "module.wrap_event", | |
75 "module.wrap_global", | |
76 "module.wrap_object_event", | |
77 }; | |
78 globals = { | |
79 "_M", | |
80 | |
81 -- Methods that can be set on module API | |
82 "module.unload", | |
83 "module.add_host", | |
84 "module.load", | |
85 "module.add_host", | |
86 "module.save", | |
87 "module.restore", | |
88 "module.command", | |
89 }; | |
18 } | 90 } |
19 files["tests/"] = { | 91 files["tests/"] = { |
20 read_globals = { | 92 read_globals = { |
21 "testlib_new_env", | 93 "testlib_new_env", |
22 "assert_equal", | 94 "assert_equal", |