From c7342b777fea90f2273e8c2e7da0274d32f9ec58 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 29 Jan 2014 13:17:06 -0500 Subject: [PATCH] Add xref target --- rebar.config | 2 ++ tools.mk | 3 +++ 2 files changed, 5 insertions(+) diff --git a/rebar.config b/rebar.config index 7ffe1263..67bdb08b 100644 --- a/rebar.config +++ b/rebar.config @@ -20,3 +20,5 @@ ]}. {eunit_opts, [verbose]}. + +{xref_checks, [undefined_function_calls]}. diff --git a/tools.mk b/tools.mk index 82a0669b..8e0e1b9a 100644 --- a/tools.mk +++ b/tools.mk @@ -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