Software /
code /
prosody
Comparison
.luacheckrc @ 8821:c1014eac2a1a
.luacheckrc: Only ignore warnings for excluded files, not syntax errors
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 23 May 2018 00:55:33 +0200 |
parent | 8806:6529f762b819 |
child | 8824:9232305618ac |
comparison
equal
deleted
inserted
replaced
8820:1348a931528a | 8821:c1014eac2a1a |
---|---|
121 } | 121 } |
122 | 122 |
123 if os.getenv("PROSODY_STRICT_LINT") ~= "1" then | 123 if os.getenv("PROSODY_STRICT_LINT") ~= "1" then |
124 -- These files have not yet been brought up to standard | 124 -- These files have not yet been brought up to standard |
125 -- Do not add more files here, but do help us fix these! | 125 -- Do not add more files here, but do help us fix these! |
126 exclude_files = { | 126 local exclude_files = { |
127 "doc/net.server.lua"; | 127 "doc/net.server.lua"; |
128 | 128 |
129 "fallbacks/bit.lua"; | 129 "fallbacks/bit.lua"; |
130 "fallbacks/lxp.lua"; | 130 "fallbacks/lxp.lua"; |
131 | 131 |
179 "tools/openfire2prosody.lua"; | 179 "tools/openfire2prosody.lua"; |
180 "tools/xep227toprosody.lua"; | 180 "tools/xep227toprosody.lua"; |
181 | 181 |
182 "util/sasl/digest-md5.lua"; | 182 "util/sasl/digest-md5.lua"; |
183 } | 183 } |
184 for _, file in ipairs(exclude_files) do | |
185 files[file] = { only = {} } | |
186 end | |
184 else | 187 else |
185 max_cyclomatic_complexity = 50 | 188 max_cyclomatic_complexity = 50 |
186 max_line_length = 120 | 189 max_line_length = 120 |
187 end | 190 end |