aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
diff options
context:
space:
mode:
Diffstat (limited to '.luacheckrc')
-rw-r--r--.luacheckrc30
1 files changed, 17 insertions, 13 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 91face3f..41ae1495 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -13,6 +13,10 @@ files["core/"] = {
read_globals = { "prosody", "hosts" };
globals = { "prosody.hosts.?", "hosts.?" };
}
+files["util/"] = {
+ -- Ignore unwrapped license text
+ max_comment_line_length = false;
+}
files["plugins/"] = {
read_globals = {
-- Module instance
@@ -51,8 +55,6 @@ files["plugins/"] = {
"module.get_option_set",
"module.get_option_string",
"module.handle_items",
- "module.has_feature",
- "module.has_identity",
"module.hook",
"module.hook_global",
"module.hook_object_event",
@@ -89,16 +91,18 @@ files["plugins/"] = {
"module.environment",
};
}
-files["tests/"] = {
- read_globals = {
- "testlib_new_env",
- "assert_equal",
- "assert_table",
- "assert_function",
- "assert_string",
- "assert_boolean",
- "assert_is",
- "assert_is_not",
- "runtest",
+files["spec/"] = {
+ std = "+busted"
+}
+files["prosody.cfg.lua"] = {
+ globals = {
+ "Host",
+ "host",
+ "VirtualHost",
+ "Component",
+ "component",
+ "Include",
+ "include",
+ "RunScript"
};
}