Mercurial > prosody-modules
comparison .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 |
comparison
equal
deleted
inserted
replaced
2603:095f7f8ec545 | 2604:08f2d2a61af8 |
---|---|
62 "module.unhook_object_event", | 62 "module.unhook_object_event", |
63 "module.wrap_event", | 63 "module.wrap_event", |
64 "module.wrap_global", | 64 "module.wrap_global", |
65 "module.wrap_object_event", | 65 "module.wrap_object_event", |
66 } | 66 } |
67 globals = { "_M" } | 67 globals = { |
68 "_M", | |
69 | |
70 -- Methods that can be set on module API | |
71 "module.unload", | |
72 "module.add_host", | |
73 "module.load", | |
74 "module.add_host", | |
75 "module.save", | |
76 "module.restore", | |
77 "module.command", | |
78 } | |
68 allow_defined_top = true | 79 allow_defined_top = true |
69 unused_secondaries = false | 80 unused_secondaries = false |
70 codes = true | 81 codes = true |
71 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }; | 82 ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }; |