Software /
code /
prosody
Comparison
.luacheckrc @ 11120:b2331f3dfeea
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 09:50:33 +0100 |
parent | 10997:2451e3918c2c |
child | 11434:66d4067bdfb2 |
comparison
equal
deleted
inserted
replaced
11119:68df52bf08d5 | 11120:b2331f3dfeea |
---|---|
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", |
121 } | 126 } |
122 | 127 |
123 if os.getenv("PROSODY_STRICT_LINT") ~= "1" then | 128 if os.getenv("PROSODY_STRICT_LINT") ~= "1" then |
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 | |
127 | 131 |
128 local exclude_files = { | 132 local exclude_files = { |
129 "doc/net.server.lua"; | 133 "doc/net.server.lua"; |
130 | 134 |
131 "fallbacks/bit.lua"; | 135 "fallbacks/bit.lua"; |
132 "fallbacks/lxp.lua"; | 136 "fallbacks/lxp.lua"; |
133 | 137 |
134 "net/adns.lua"; | 138 "net/dns.lua"; |
135 "net/cqueues.lua"; | 139 "net/server_select.lua"; |
136 "net/dns.lua"; | |
137 "net/server_select.lua"; | |
138 | 140 |
139 "plugins/mod_storage_sql1.lua"; | 141 "plugins/mod_storage_sql1.lua"; |
140 | 142 |
141 "spec/core_configmanager_spec.lua"; | 143 "spec/core_moduleapi_spec.lua"; |
142 "spec/core_moduleapi_spec.lua"; | 144 "spec/util_http_spec.lua"; |
143 "spec/net_http_parser_spec.lua"; | 145 "spec/util_ip_spec.lua"; |
144 "spec/util_events_spec.lua"; | 146 "spec/util_multitable_spec.lua"; |
145 "spec/util_http_spec.lua"; | 147 "spec/util_rfc6724_spec.lua"; |
146 "spec/util_ip_spec.lua"; | 148 "spec/util_throttle_spec.lua"; |
147 "spec/util_multitable_spec.lua"; | |
148 "spec/util_rfc6724_spec.lua"; | |
149 "spec/util_throttle_spec.lua"; | |
150 "spec/util_xmppstream_spec.lua"; | |
151 | 149 |
152 "tools/ejabberd2prosody.lua"; | 150 "tools/ejabberd2prosody.lua"; |
153 "tools/ejabberdsql2prosody.lua"; | 151 "tools/ejabberdsql2prosody.lua"; |
154 "tools/erlparse.lua"; | 152 "tools/erlparse.lua"; |
155 "tools/jabberd14sql2prosody.lua"; | 153 "tools/jabberd14sql2prosody.lua"; |
156 "tools/migration/migrator.cfg.lua"; | 154 "tools/migration/migrator.cfg.lua"; |
157 "tools/migration/migrator/jabberd14.lua"; | 155 "tools/migration/migrator/jabberd14.lua"; |
158 "tools/migration/migrator/mtools.lua"; | 156 "tools/migration/migrator/mtools.lua"; |
159 "tools/migration/migrator/prosody_files.lua"; | 157 "tools/migration/migrator/prosody_files.lua"; |
160 "tools/migration/migrator/prosody_sql.lua"; | 158 "tools/migration/migrator/prosody_sql.lua"; |
161 "tools/migration/prosody-migrator.lua"; | 159 "tools/migration/prosody-migrator.lua"; |
162 "tools/openfire2prosody.lua"; | 160 "tools/openfire2prosody.lua"; |
163 "tools/xep227toprosody.lua"; | 161 "tools/xep227toprosody.lua"; |
164 | |
165 "util/sasl/digest-md5.lua"; | |
166 } | 162 } |
167 for _, file in ipairs(exclude_files) do | 163 for _, file in ipairs(exclude_files) do |
168 files[file] = { only = {} } | 164 files[file] = { only = {} } |
169 end | 165 end |
170 end | 166 end |