# HG changeset patch # User Anton Shestakov # Date 1468030115 -28800 # Node ID 2489abe342c164e223b86c93890a469667882faf # Parent 42d8955be784407d68169897c51f1bcc30d503e9 luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest diff -r 42d8955be784 -r 2489abe342c1 .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", }; }