mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
rebar_xref: move code to proper place
This commit is contained in:
parent
24254f7582
commit
e33d3a568f
1 changed files with 4 additions and 4 deletions
|
@ -46,6 +46,10 @@ xref(Config, _X) ->
|
||||||
false -> xref0(Config, _X)
|
false -> xref0(Config, _X)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
%% ===================================================================
|
||||||
|
%% Internal functions
|
||||||
|
%% ===================================================================
|
||||||
|
|
||||||
xref0(Config, _) ->
|
xref0(Config, _) ->
|
||||||
%% Spin up xref
|
%% Spin up xref
|
||||||
{ok, _} = xref:start(xref),
|
{ok, _} = xref:start(xref),
|
||||||
|
@ -96,10 +100,6 @@ xref0(Config, _) ->
|
||||||
?FAIL
|
?FAIL
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% ===================================================================
|
|
||||||
%% Internal functions
|
|
||||||
%% ===================================================================
|
|
||||||
|
|
||||||
check_exports_not_used() ->
|
check_exports_not_used() ->
|
||||||
{ok, UnusedExports0} = xref:analyze(xref, exports_not_used),
|
{ok, UnusedExports0} = xref:analyze(xref, exports_not_used),
|
||||||
UnusedExports = filter_away_ignored(UnusedExports0),
|
UnusedExports = filter_away_ignored(UnusedExports0),
|
||||||
|
|
Loading…
Reference in a new issue