luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 09 Jul 2016 10:08:35 +0800
changeset 7481 2489abe342c1
parent 7479 42d8955be784
child 7482 a82f88db12f7
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
.luacheckrc
--- a/.luacheckrc	Fri Jul 08 19:20:49 2016 +0200
+++ b/.luacheckrc	Sat Jul 09 10:08:35 2016 +0800
@@ -11,13 +11,15 @@
 	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",
 	};
 }