aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 10:08:35 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 10:08:35 +0800
commitd095fb09d3783d7891ebbaa4b20cefb0b8d1618f (patch)
tree4573dc6a3ec2cae2646c09fe580f06673f30c670
parent9741bdfb3887695e7021d793ce6a96eaf595ed2b (diff)
downloadprosody-d095fb09d3783d7891ebbaa4b20cefb0b8d1618f.tar.gz
prosody-d095fb09d3783d7891ebbaa4b20cefb0b8d1618f.zip
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
-rw-r--r--.luacheckrc18
1 files 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",
};
}