瀏覽代碼

Merge pull request #2250 from pablocostass/xref_improvements_relative_path

xref improvements: now outputs relative file paths
pull/2257/head
Fred Hebert 5 年之前
committed by GitHub
父節點
當前提交
3bdebe123c
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/rebar_prv_xref.erl

+ 2
- 1
src/rebar_prv_xref.erl 查看文件

@ -212,7 +212,7 @@ display_xref_results_for_type({Type, XrefResults}) ->
display_xref_result_fun(Type) ->
fun(XrefResult) ->
{Source, SMFA, TMFA} =
{FormattedSource, SMFA, TMFA} =
case XrefResult of
{MFASource, MFATarget} ->
{format_mfa_source(MFASource),
@ -223,6 +223,7 @@ display_xref_result_fun(Type) ->
format_mfa(MFATarget),
undefined}
end,
Source = rebar_dir:make_relative_path(FormattedSource, rebar_dir:get_cwd()),
case Type of
undefined_function_calls ->
io_lib:format("~tsWarning: ~ts calls undefined function ~ts (Xref)\n",

Loading…
取消
儲存