luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
[prosody.git] / .luacheckrc
index 590f9c3718fb6625e12e096dcba5e33249b82efb..0da4a0e7f7f57cca05d6db2a70fcd6d5bd7b3f07 100644 (file)
@@ -10,3 +10,16 @@ ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }
 files["plugins/"] = {
        ignore = { "122/module" };
 }
+files["tests/"] = {
+       read_globals = {
+               "testlib_new_env",
+               "assert_equal",
+               "assert_table",
+               "assert_function",
+               "assert_string",
+               "assert_boolean",
+               "assert_is",
+               "assert_is_not",
+               "runtest",
+       };
+}