summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2020-05-07 22:29:54 +0200
committerBadlop <badlop@process-one.net>2020-05-07 22:29:54 +0200
commit64c09c20ebbeb3511cf372386c3140286d1edd8a (patch)
treef0a4aefacd333678d883d1b351526bc3dec017cb /tools
parentRemove ancient and rather useless incode ejabberd_commands documentation (diff)
Hide false-positive warnings about mod_delegation Type atom and NS binary
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hook_deps.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/hook_deps.sh b/tools/hook_deps.sh
index 1df963d7..00aa044a 100755
--- a/tools/hook_deps.sh
+++ b/tools/hook_deps.sh
@@ -301,6 +301,10 @@ is_exported(Mod, Fun, Arity, Exports) ->
catch _:{badkey, _} -> false
end.
+warn_type({var, _, 'Type'}, #state{module = mod_delegation}, "not an atom") ->
+ ok;
+warn_type({var, _, 'NS'}, #state{module = mod_delegation}, "not a binary") ->
+ ok;
warn_type(Form, State, Warning) ->
log("~s:~p: Warning: " ++ Warning ++ ": ~s~n",
[State#state.file,