diff options
Diffstat (limited to '.luacheckrc')
-rw-r--r-- | .luacheckrc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 00000000..90d2e273 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,25 @@ +cache = true +read_globals = { "prosody", "hosts", "import" } +globals = { "_M" } +allow_defined_top = true +module = true +unused_secondaries = false +codes = true +ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" } + +files["plugins/"] = { + globals = { "module" }; +} +files["tests/"] = { + read_globals = { + "testlib_new_env", + "assert_equal", + "assert_table", + "assert_function", + "assert_string", + "assert_boolean", + "assert_is", + "assert_is_not", + "runtest", + }; +} |