summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormats cronqvist <masse@klarna.com>2013-12-06 10:45:52 +0100
committermats cronqvist <masse@klarna.com>2014-01-13 15:11:12 +0100
commit4ca7c8417971239ac773c530974e9acce327cc86 (patch)
tree4d49999988cb80849cf9bf7e70acdeb48dc57929 /src
parentdf42410cf21a37e0c48e741ffa37db9efc576309 (diff)
introduce xref_extra_paths
Diffstat (limited to 'src')
-rw-r--r--src/rebar_xref.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl
index 0d89460..91fb60d 100644
--- a/src/rebar_xref.erl
+++ b/src/rebar_xref.erl
@@ -103,9 +103,11 @@ info(help, xref) ->
"Valid rebar.config options:~n"
" ~p~n"
" ~p~n"
+ " ~p~n"
" ~p~n",
[
{xref_warnings, false},
+ {xref_extra_paths,[]},
{xref_checks, [undefined_function_calls, undefined_functions,
locals_not_used, exports_not_used,
deprecated_function_calls, deprecated_functions]},
@@ -146,6 +148,7 @@ code_path(Config) ->
%% properly into the overall compile code path if possible.
BaseDir = rebar_config:get_xconf(Config, base_dir),
[P || P <- code:get_path() ++
+ rebar_config:get(Config, xref_extra_paths, []) ++
[filename:join(BaseDir, filename:join(SubDir, "ebin"))
|| SubDir <- rebar_config:get(Config, sub_dirs, [])],
filelib:is_dir(P)].