From df7e22057fdfff14bc0b31e4a2aed9e2a8db8b64 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 23 May 2018 00:55:33 +0200 Subject: .luacheckrc: Only ignore warnings for excluded files, not syntax errors --- .luacheckrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.luacheckrc') 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 -- cgit v1.2.3