Skip to content

Commit 2e3cf1c

Browse files
author
Brujo Benavides
committed
Merge pull request #26 from inaka/davecaos.25.xref_runner_should_not_register_himself_on_xref
Davecaos.25.xref runner should not register himself on xref
2 parents 5f88bec + 97e9ff1 commit 2e3cf1c

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## [0.2.1](https://github.com/inaka/xref_runner/tree/0.2.1) (2015-03-19)
4+
5+
[Full Changelog](https://github.com/inaka/xref_runner/compare/0.2.0...0.2.1)
6+
7+
**Merged pull requests:**
8+
9+
- Remove `exports\_not\_used` from the default list of checks [\#24](https://github.com/inaka/xref_runner/pull/24) ([elbrujohalcon](https://github.com/elbrujohalcon))
10+
311
## [0.2.0](https://github.com/inaka/xref_runner/tree/0.2.0) (2015-03-18)
412

513
[Full Changelog](https://github.com/inaka/xref_runner/compare/0.1.1...0.2.0)
@@ -22,14 +30,14 @@
2230

2331
- \[Fix \#2\] Euen.2.escriptize [\#19](https://github.com/inaka/xref_runner/pull/19) ([Euen](https://github.com/Euen))
2432

25-
- \[Fix \#2\] Euen.2.escriptize [\#18](https://github.com/inaka/xref_runner/pull/18) ([Euen](https://github.com/Euen))
26-
27-
- \[Fix \#2\] escriptize [\#17](https://github.com/inaka/xref_runner/pull/17) ([Euen](https://github.com/Euen))
28-
2933
- \[Fix \#10\] Add Path in check function [\#16](https://github.com/inaka/xref_runner/pull/16) ([Euen](https://github.com/Euen))
3034

3135
- \[Fix \#9\] documentation of the function check/0 [\#15](https://github.com/inaka/xref_runner/pull/15) ([Euen](https://github.com/Euen))
3236

37+
- \[Fix \#2\] Euen.2.escriptize [\#18](https://github.com/inaka/xref_runner/pull/18) ([Euen](https://github.com/Euen))
38+
39+
- \[Fix \#2\] escriptize [\#17](https://github.com/inaka/xref_runner/pull/17) ([Euen](https://github.com/Euen))
40+
3341
## [0.1.1](https://github.com/inaka/xref_runner/tree/0.1.1) (2015-03-05)
3442

3543
[Full Changelog](https://github.com/inaka/xref_runner/compare/0.1.0...0.1.1)

src/xref_runner.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
application, xref_runner,
33
[
44
{description, "Xref Runner"},
5-
{vsn, "0.2.1"},
5+
{vsn, "0.2.2"},
66
{applications,
77
[ kernel
88
, stdlib

src/xref_runner.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ check(Check, Config) ->
7070

7171
lists:foreach(fun code:add_path/1, Dirs),
7272

73-
{ok, Xref} = xref:start(?MODULE),
73+
{ok, Xref} = xref:start([]),
7474
try
7575
ok = xref:set_library_path(Xref, code_path(Config)),
7676

test/xref_runner_SUITE.erl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
, check_with_config_file/1
1515
, check_with_no_config_file/1
1616
, check_as_script/1
17+
, not_xref_register_himself/1
1718
]).
1819

1920
-type config() :: [{atom(), term()}].
@@ -39,6 +40,15 @@ end_per_suite(Config) ->
3940
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4041
%% Test Cases
4142
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43+
-spec not_xref_register_himself(config()) -> {comment, string()}.
44+
not_xref_register_himself(_Config) ->
45+
Path = filename:dirname(code:which(deprecated_functions)),
46+
Config = #{ dirs => [Path] },
47+
48+
ct:comment("It runs"),
49+
spawn(xref_runner, check, [deprecated_functions,Config]),
50+
spawn(xref_runner, check, [deprecated_functions,Config]),
51+
{comment, ""}.
4252

4353
-spec undefined_function_calls(config()) -> {comment, string()}.
4454
undefined_function_calls(_Config) ->

0 commit comments

Comments
 (0)