Comparison

.luacheckrc @ 10563:e8db377a2983

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:39:45 +0100
parent 10527:d59be9befad7
child 10723:144a1ee24a4e
comparison
equal deleted inserted replaced
10562:670afc079f68 10563:e8db377a2983
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/cqueues.lua";
135 "net/cqueues.lua"; 139 "net/dns.lua";
136 "net/dns.lua"; 140 "net/server_select.lua";
137 "net/server_select.lua";
138 141
139 "plugins/mod_storage_sql1.lua"; 142 "plugins/mod_storage_sql1.lua";
140 143
141 "spec/core_configmanager_spec.lua"; 144 "spec/core_moduleapi_spec.lua";
142 "spec/core_moduleapi_spec.lua"; 145 "spec/util_http_spec.lua";
143 "spec/net_http_parser_spec.lua"; 146 "spec/util_ip_spec.lua";
144 "spec/util_events_spec.lua"; 147 "spec/util_multitable_spec.lua";
145 "spec/util_http_spec.lua"; 148 "spec/util_rfc6724_spec.lua";
146 "spec/util_ip_spec.lua"; 149 "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 150
152 "tools/ejabberd2prosody.lua"; 151 "tools/ejabberd2prosody.lua";
153 "tools/ejabberdsql2prosody.lua"; 152 "tools/ejabberdsql2prosody.lua";
154 "tools/erlparse.lua"; 153 "tools/erlparse.lua";
155 "tools/jabberd14sql2prosody.lua"; 154 "tools/jabberd14sql2prosody.lua";
156 "tools/migration/migrator.cfg.lua"; 155 "tools/migration/migrator.cfg.lua";
157 "tools/migration/migrator/jabberd14.lua"; 156 "tools/migration/migrator/jabberd14.lua";
158 "tools/migration/migrator/mtools.lua"; 157 "tools/migration/migrator/mtools.lua";
159 "tools/migration/migrator/prosody_files.lua"; 158 "tools/migration/migrator/prosody_files.lua";
160 "tools/migration/migrator/prosody_sql.lua"; 159 "tools/migration/migrator/prosody_sql.lua";
161 "tools/migration/prosody-migrator.lua"; 160 "tools/migration/prosody-migrator.lua";
162 "tools/openfire2prosody.lua"; 161 "tools/openfire2prosody.lua";
163 "tools/xep227toprosody.lua"; 162 "tools/xep227toprosody.lua";
164 163
165 "util/sasl/digest-md5.lua"; 164 "util/sasl/digest-md5.lua";
166 } 165 }
167 for _, file in ipairs(exclude_files) do 166 for _, file in ipairs(exclude_files) do
168 files[file] = { only = {} } 167 files[file] = { only = {} }
169 end 168 end
170 end 169 end