diff .luacheckrc @ 2604:08f2d2a61af8

luacheckrc: Whitelist methods that can be set on the module API instance
author Kim Alvefur <zash@zash.se>
date Mon, 06 Mar 2017 01:05:38 +0100
parents 095f7f8ec545
children 1cf418299d86
line wrap: on
line diff
--- 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