diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-23 00:55:33 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-23 00:55:33 +0200 |
commit | 66f9cbcac7a66a61571a46fe2263556566dbc2fa (patch) | |
tree | a1f3d28955eded796470a310d5828acc4627a40c | |
parent | c931751893fa558de2150ca1c4b76427cdeddd09 (diff) | |
download | prosody-66f9cbcac7a66a61571a46fe2263556566dbc2fa.tar.gz prosody-66f9cbcac7a66a61571a46fe2263556566dbc2fa.zip |
.luacheckrc: Only ignore warnings for excluded files, not syntax errors
-rw-r--r-- | .luacheckrc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.luacheckrc b/.luacheckrc index 6aff9301..71d1b5f9 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -123,7 +123,7 @@ files["prosody.cfg.lua"] = { if os.getenv("PROSODY_STRICT_LINT") ~= "1" then -- These files have not yet been brought up to standard -- Do not add more files here, but do help us fix these! - exclude_files = { + local exclude_files = { "doc/net.server.lua"; "fallbacks/bit.lua"; @@ -181,6 +181,9 @@ if os.getenv("PROSODY_STRICT_LINT") ~= "1" then "util/sasl/digest-md5.lua"; } + for _, file in ipairs(exclude_files) do + files[file] = { only = {} } + end else max_cyclomatic_complexity = 50 max_line_length = 120 |