Software /
code /
prosody
Comparison
core/usermanager.lua @ 12664:05d5f25a3c61
core.usermanager: Add scoped luacheck ignore rule to reduce clutter
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2022 14:07:54 +0200 |
parent | 12663:cf88f6b03942 |
child | 12665:314bad8907fd |
comparison
equal
deleted
inserted
replaced
12663:cf88f6b03942 | 12664:05d5f25a3c61 |
---|---|
33 __index = function(self, method) return dummy; end --luacheck: ignore 212 | 33 __index = function(self, method) return dummy; end --luacheck: ignore 212 |
34 }); | 34 }); |
35 end | 35 end |
36 | 36 |
37 local fallback_authz_provider = { | 37 local fallback_authz_provider = { |
38 get_user_roles = function (user) end; --luacheck: ignore 212/user | 38 -- luacheck: ignore 212 |
39 get_jids_with_role = function (role) end; --luacheck: ignore 212 | 39 get_user_roles = function (user) end; |
40 | 40 get_jids_with_role = function (role) end; |
41 get_user_role = function (user) end; -- luacheck: ignore 212 | 41 |
42 set_user_role = function (user, roles) end; -- luacheck: ignore 212 | 42 get_user_role = function (user) end; |
43 | 43 set_user_role = function (user, roles) end; |
44 add_user_secondary_role = function (user, host, role_name) end; --luacheck: ignore 212 | 44 |
45 remove_user_secondary_role = function (user, host, role_name) end; --luacheck: ignore 212 | 45 add_user_secondary_role = function (user, host, role_name) end; |
46 | 46 remove_user_secondary_role = function (user, host, role_name) end; |
47 get_jid_role = function (jid) end; -- luacheck: ignore 212 | 47 |
48 set_jid_role = function (jid, role) end; -- luacheck: ignore 212 | 48 get_jid_role = function (jid) end; |
49 | 49 set_jid_role = function (jid, role) end; |
50 get_users_with_role = function (role_name) end; -- luacheck: ignore 212 | 50 |
51 add_default_permission = function (role_name, action, policy) end; -- luacheck: ignore 212 | 51 get_users_with_role = function (role_name) end; |
52 get_role_by_name = function (role_name) end; -- luacheck: ignore 212 | 52 add_default_permission = function (role_name, action, policy) end; |
53 get_role_by_name = function (role_name) end; | |
53 }; | 54 }; |
54 | 55 |
55 local provider_mt = { __index = new_null_provider() }; | 56 local provider_mt = { __index = new_null_provider() }; |
56 | 57 |
57 local function initialize_host(host) | 58 local function initialize_host(host) |