# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1527029733 -7200
# Node ID c1014eac2a1ac638e8731ddb2009834f867d00d1
# Parent  1348a931528a030ec154fd11bffc50fca0af1991
.luacheckrc: Only ignore warnings for excluded files, not syntax errors

diff -r 1348a931528a -r c1014eac2a1a .luacheckrc
--- a/.luacheckrc	Tue May 22 22:25:59 2018 +0200
+++ b/.luacheckrc	Wed May 23 00:55:33 2018 +0200
@@ -123,7 +123,7 @@
 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 @@
 
 	"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