Detect circular dependencies in `mix xref graph`

24 views
Skip to first unread message

Nathan Long

unread,
Jun 24, 2019, 3:59:58 PM6/24/19
to elixir-lang-core
It would be cool if `mix xref graph` could alert about circular dependencies between modules, since they generally indicate a problem with the design.

José Valim

unread,
Jun 24, 2019, 4:23:27 PM6/24/19
to elixir-l...@googlegroups.com
I wholeheartedly agree. Today you can build it yourself by using the "Mix.Tasks.Xref.calls" API. I would love to see a small project that implements it and that we can run in our actual projects to see how good or bad the data is (for example, are there false positives? false negatives?). And how fast it runs (that will help decide if we should run it always or not).

José Valim
Skype: jv.ptec
Founder and Director of R&D


On Mon, Jun 24, 2019 at 10:00 PM Nathan Long <h...@nathanmlong.com> wrote:
It would be cool if `mix xref graph` could alert about circular dependencies between modules, since they generally indicate a problem with the design.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/0723047f-88fe-461b-b241-8a5250742a52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages