# HG changeset patch # User Kim Alvefur # Date 1488758738 -3600 # Node ID 08f2d2a61af85f70214cef72617f8c08268f42a0 # Parent 095f7f8ec54554f6c810293db49fefd68436b070 luacheckrc: Whitelist methods that can be set on the module API instance diff -r 095f7f8ec545 -r 08f2d2a61af8 .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