Software /
code /
prosody
Changeset
7478:2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 09 Jul 2016 10:08:35 +0800 |
parents | 7476:42d8955be784 |
children | 7479:a82f88db12f7 |
files | .luacheckrc |
diffstat | 1 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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", }; }