inaka / xref_runner

Erlang Xref Runner (inspired in rebar xref)

Home Page:http://inaka.github.io/xref_runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make that xref_runner supports rebar3 compilation

Euen opened this issue · comments

commented

When you don't have xref.config xref takes the compiled file form ebin/ directory as default

-spec check(check(), config()) -> [warning()].
check(Check, Config) ->
  XrefDefaults = maps:get(xref_defaults, Config, []),
  ConfigDirs = maps:get(dirs, Config, [ebin()]),
  ...

ebin() ->
  case filelib:is_dir("ebin") of
    true -> filename:absname("ebin");
    false -> filename:absname(".")
  end.

It's needed to support the rebar3 compilation without ebin/ directory

Fixed with PR [#51]