Software /
code /
prosody
Comparison
.luacheckrc @ 10061:5c71693c8345
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Jul 2019 02:44:32 +0200 |
parent | 9940:5d5e3d982bdc |
child | 10496:ec67425dedf1 |
comparison
equal
deleted
inserted
replaced
10060:7a36b7ac309b | 10061:5c71693c8345 |
---|---|
1 cache = true | 1 cache = true |
2 codes = true | 2 codes = true |
3 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log", "143/table", "113/unpack" } | 3 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV", "431/log", } |
4 | 4 |
5 std = "lua53c" | |
5 max_line_length = 150 | 6 max_line_length = 150 |
6 | 7 |
7 read_globals = { | 8 read_globals = { |
8 "prosody", | 9 "prosody", |
9 "import", | 10 "import", |
31 read_globals = { | 32 read_globals = { |
32 -- Module instance | 33 -- Module instance |
33 "module.name", | 34 "module.name", |
34 "module.host", | 35 "module.host", |
35 "module._log", | 36 "module._log", |
36 "module.log", | |
37 "module.event_handlers", | 37 "module.event_handlers", |
38 "module.reloading", | 38 "module.reloading", |
39 "module.saved_state", | 39 "module.saved_state", |
40 "module.global", | 40 "module.global", |
41 "module.path", | 41 "module.path", |
62 "module.get_option_number", | 62 "module.get_option_number", |
63 "module.get_option_path", | 63 "module.get_option_path", |
64 "module.get_option_scalar", | 64 "module.get_option_scalar", |
65 "module.get_option_set", | 65 "module.get_option_set", |
66 "module.get_option_string", | 66 "module.get_option_string", |
67 "module.get_status", | |
67 "module.handle_items", | 68 "module.handle_items", |
68 "module.hook", | 69 "module.hook", |
69 "module.hook_global", | 70 "module.hook_global", |
70 "module.hook_object_event", | 71 "module.hook_object_event", |
71 "module.hook_tag", | 72 "module.hook_tag", |
72 "module.load_resource", | 73 "module.load_resource", |
74 "module.log", | |
75 "module.log_status", | |
73 "module.measure", | 76 "module.measure", |
74 "module.measure_event", | 77 "module.measure_event", |
75 "module.measure_global_event", | 78 "module.measure_global_event", |
76 "module.measure_object_event", | 79 "module.measure_object_event", |
77 "module.open_store", | 80 "module.open_store", |
78 "module.provides", | 81 "module.provides", |
79 "module.remove_item", | 82 "module.remove_item", |
80 "module.require", | 83 "module.require", |
81 "module.send", | 84 "module.send", |
85 "module.send_iq", | |
82 "module.set_global", | 86 "module.set_global", |
87 "module.set_status", | |
83 "module.shared", | 88 "module.shared", |
84 "module.unhook", | 89 "module.unhook", |
85 "module.unhook_object_event", | 90 "module.unhook_object_event", |
86 "module.wrap_event", | 91 "module.wrap_event", |
87 "module.wrap_global", | 92 "module.wrap_global", |
124 -- These files have not yet been brought up to standard | 129 -- These files have not yet been brought up to standard |
125 -- Do not add more files here, but do help us fix these! | 130 -- Do not add more files here, but do help us fix these! |
126 unused_secondaries = false | 131 unused_secondaries = false |
127 | 132 |
128 local exclude_files = { | 133 local exclude_files = { |
129 "doc/net.server.lua"; | 134 "doc/net.server.lua"; |
130 | 135 |
131 "fallbacks/bit.lua"; | 136 "fallbacks/bit.lua"; |
132 "fallbacks/lxp.lua"; | 137 "fallbacks/lxp.lua"; |
133 | 138 |
134 "net/adns.lua"; | 139 "net/cqueues.lua"; |
135 "net/cqueues.lua"; | 140 "net/dns.lua"; |
136 "net/dns.lua"; | 141 "net/server_select.lua"; |
137 "net/server_select.lua"; | |
138 | 142 |
139 "plugins/mod_storage_sql1.lua"; | 143 "plugins/mod_storage_sql1.lua"; |
140 | 144 |
141 "spec/core_configmanager_spec.lua"; | 145 "spec/core_configmanager_spec.lua"; |
142 "spec/core_moduleapi_spec.lua"; | 146 "spec/core_moduleapi_spec.lua"; |
143 "spec/net_http_parser_spec.lua"; | 147 "spec/net_http_parser_spec.lua"; |
144 "spec/util_events_spec.lua"; | 148 "spec/util_events_spec.lua"; |
145 "spec/util_http_spec.lua"; | 149 "spec/util_http_spec.lua"; |
146 "spec/util_ip_spec.lua"; | 150 "spec/util_ip_spec.lua"; |
147 "spec/util_multitable_spec.lua"; | 151 "spec/util_multitable_spec.lua"; |
148 "spec/util_rfc6724_spec.lua"; | 152 "spec/util_rfc6724_spec.lua"; |
149 "spec/util_throttle_spec.lua"; | 153 "spec/util_throttle_spec.lua"; |
150 "spec/util_xmppstream_spec.lua"; | 154 "spec/util_xmppstream_spec.lua"; |
151 | 155 |
152 "tools/ejabberd2prosody.lua"; | 156 "tools/ejabberd2prosody.lua"; |
153 "tools/ejabberdsql2prosody.lua"; | 157 "tools/ejabberdsql2prosody.lua"; |
154 "tools/erlparse.lua"; | 158 "tools/erlparse.lua"; |
155 "tools/jabberd14sql2prosody.lua"; | 159 "tools/jabberd14sql2prosody.lua"; |
156 "tools/migration/migrator.cfg.lua"; | 160 "tools/migration/migrator.cfg.lua"; |
157 "tools/migration/migrator/jabberd14.lua"; | 161 "tools/migration/migrator/jabberd14.lua"; |
158 "tools/migration/migrator/mtools.lua"; | 162 "tools/migration/migrator/mtools.lua"; |
159 "tools/migration/migrator/prosody_files.lua"; | 163 "tools/migration/migrator/prosody_files.lua"; |
160 "tools/migration/migrator/prosody_sql.lua"; | 164 "tools/migration/migrator/prosody_sql.lua"; |
161 "tools/migration/prosody-migrator.lua"; | 165 "tools/migration/prosody-migrator.lua"; |
162 "tools/openfire2prosody.lua"; | 166 "tools/openfire2prosody.lua"; |
163 "tools/xep227toprosody.lua"; | 167 "tools/xep227toprosody.lua"; |
164 | 168 |
165 "util/sasl/digest-md5.lua"; | 169 "util/sasl/digest-md5.lua"; |
166 } | 170 } |
167 for _, file in ipairs(exclude_files) do | 171 for _, file in ipairs(exclude_files) do |
168 files[file] = { only = {} } | 172 files[file] = { only = {} } |
169 end | 173 end |
170 end | 174 end |