[erlang-questions] xref

Guilherme Andrade g@REDACTED
Thu Jan 4 14:39:24 CET 2018


On 4 January 2018 at 04:46, Technion <technion@REDACTED> wrote:

> I'm wondering if I could get some advise regarding xref.
>
> I've found across a number of projects, anything using Cowboy triggers
> similar alerts for me to below:
>

I believe the example module you mentioned ('toppage_handler') implements
the 'cowboy_handler' behaviour[1].

If '-behaviour(cowboy_handler).' were to be explicitly declared on
'toppage_handler', xref would realize that those unused functions are
actually callbacks.


[1]: https://ninenines.eu/docs/en/cowboy/2.0/manual/cowboy_handler/

-- 
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180104/4d6141c9/attachment.htm>


More information about the erlang-questions mailing list