From d095fb09d3783d7891ebbaa4b20cefb0b8d1618f Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Sat, 9 Jul 2016 10:08:35 +0800 Subject: luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest --- .luacheckrc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to '.luacheckrc') 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", }; } -- cgit v1.2.3 From a70183bcec1791c55df3679773c0d3a46e94c777 Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Sat, 9 Jul 2016 10:17:00 +0800 Subject: luacheckrc: make module a global in plugins/ --- .luacheckrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc index 0da4a0e7..90d2e273 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -8,7 +8,7 @@ codes = true ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" } files["plugins/"] = { - ignore = { "122/module" }; + globals = { "module" }; } files["tests/"] = { read_globals = { -- cgit v1.2.3