From d095fb09d3783d7891ebbaa4b20cefb0b8d1618f Mon Sep 17 00:00:00 2001
From: Anton Shestakov <av6@dwimlabs.net>
Date: Sat, 9 Jul 2016 10:08:35 +0800
Subject: luacheckrc: make test helpers read-only globals, add testlib_new_env
 and runtest

---
 .luacheckrc | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index 2fc05e75..0da4a0e7 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -11,13 +11,15 @@ files["plugins/"] = {
 	ignore = { "122/module" };
 }
 files["tests/"] = {
-	ignore = {
-		"113/assert_equal",
-		"113/assert_table",
-		"113/assert_function",
-		"113/assert_string",
-		"113/assert_boolean",
-		"113/assert_is",
-		"113/assert_is_not",
+	read_globals = {
+		"testlib_new_env",
+		"assert_equal",
+		"assert_table",
+		"assert_function",
+		"assert_string",
+		"assert_boolean",
+		"assert_is",
+		"assert_is_not",
+		"runtest",
 	};
 }
-- 
cgit v1.2.3