Mix integration of xref, inspired by a post by @elbrujohalcon in inaka's blog. Constantly running xref makes you look smarter (by suppressing stupid mistakes)!
-
Add
:exref
to your list of dependencies inmix.exs
. -
$ mix deps.get
-
$ mix compile.exref
checks all function calls in your mix project. -
If you want to run
exref
every time you compile your mix project, overwritecompilers
ofproject/0
in yourmix.exs
:def project do [ ... compilers: Mix.compilers ++ [:exref], ... ] end