From f49a9102ef14be5209b5212b486457bc76eb0d58 Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Sat, 9 Jul 2016 10:08:35 +0800 Subject: [PATCH] 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", }; } -- 2.30.2