luacheckrc: Whitelist methods that can be set on the module API instance
authorKim Alvefur <zash@zash.se>
Mon, 06 Mar 2017 01:05:38 +0100
changeset 2608 08f2d2a61af8
parent 2607 095f7f8ec545
child 2609 8908d001faf3
luacheckrc: Whitelist methods that can be set on the module API instance
.luacheckrc
--- a/.luacheckrc	Mon Mar 06 01:04:53 2017 +0100
+++ b/.luacheckrc	Mon Mar 06 01:05:38 2017 +0100
@@ -64,7 +64,18 @@
 	"module.wrap_global",
 	"module.wrap_object_event",
 }
-globals = { "_M" }
+globals = {
+	"_M",
+
+	-- Methods that can be set on module API
+	"module.unload",
+	"module.add_host",
+	"module.load",
+	"module.add_host",
+	"module.save",
+	"module.restore",
+	"module.command",
+}
 allow_defined_top = true
 unused_secondaries = false
 codes = true