Skip to content

Commit

Permalink
Merge pull request #55 from basho/feature/xref
Browse files Browse the repository at this point in the history
Add xref target and fix uncovered bug
  • Loading branch information
Vagabond committed Jan 29, 2014
2 parents d4caf13 + 1f8d4a0 commit ac57a25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
{webmachine, "1.10.5", {git, "git://github.com/basho/webmachine.git", {tag, "1.10.5"}}},
{riak_core, ".*", {git, "git://github.com/basho/riak_core.git", {branch, "develop"}}}
]}.

{xref_checks, [undefined_function_calls]}.
2 changes: 1 addition & 1 deletion src/riak_api_pb_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ validate_function(Cert, valid_peer, State) ->
%% peer certificate validated, now check the CRL
Res = (catch check_crl(Cert, State)),
lager:debug("CRL validate result for ~p: ~p",
[riak_core_ssl:get_common_name(Cert), Res]),
[riak_core_ssl_util:get_common_name(Cert), Res]),
{Res, State};
validate_function(Cert, valid, {TrustedCAs, IntermediateCerts}=State) ->
case public_key:pkix_is_self_signed(Cert) of
Expand Down
3 changes: 3 additions & 0 deletions tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ test: compile
docs:
./rebar doc skip_deps=true

xref: compile
./rebar xref skip_deps=true

PLT ?= $(HOME)/.riak_combo_dialyzer_plt
LOCAL_PLT = .local_dialyzer_plt
DIALYZER_FLAGS ?= -Wunmatched_returns
Expand Down

0 comments on commit ac57a25

Please sign in to comment.