aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
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
commitba4cb24cb0c7f8da28e32d87226a77359325b6aa (patch)
tree4573dc6a3ec2cae2646c09fe580f06673f30c670 /.luacheckrc
parentc53e625e427b1197b45ac9bbdf192cb07c6f2285 (diff)
downloadprosody-ba4cb24cb0c7f8da28e32d87226a77359325b6aa.tar.gz
prosody-ba4cb24cb0c7f8da28e32d87226a77359325b6aa.zip
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Diffstat (limited to '.luacheckrc')
-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",
};
}