basho/rebar — pull request #300 by dLuna (2012-08-28 17:35:19+00:00)
Title: Add other deps to library path when running xref

For those of us who do their sub_dirs as

{sub_dirs, ["apps/app1",
"apps/app2"...]}.

the other apps are not available in xrefs library path so calls between applications will always be seen as calls to undefined functions.

This fixes that problem.

(The proper and correct solution to how to run xref is of course to use a filtered code path which only contains applications which are (recursively) dependencies of the app that is currently checked. This is a bit bigger, and not part of the current pull request.)