luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 9 Jul 2016 02:08:35 +0000 (10:08 +0800)
committerAnton Shestakov <av6@dwimlabs.net>
Sat, 9 Jul 2016 02:08:35 +0000 (10:08 +0800)
.luacheckrc

index 2fc05e7527ef1643f106d315b7a3ffc13e2d3275..0da4a0e7f7f57cca05d6db2a70fcd6d5bd7b3f07 100644 (file)
@@ -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",
        };
 }