[erlang-questions] xref

Technion technion@REDACTED
Thu Jan 4 05:46:19 CET 2018


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:

$./rebar3  xref

===> Warning: api_handler:init/2 is unused export (Xref)

The init/2 function is most definitely used - it's the Cowboy callback used exactly the same way as the demo echo server does here:


I'm hoping to incorporate the xref test into my CI workflow, but I'd need to understand first how to convince it that Cowboy functions are not "unused". Is this a bug in xref or rebar?

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

More information about the erlang-questions mailing list