From 4a0c5e9b55657980dc193442d1a8dd57873f5b5a Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Tue, 28 Jan 2014 14:14:39 -0500 Subject: [PATCH 1/2] Add xref target, with exclusions --- rebar.config | 3 +++ tools.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/rebar.config b/rebar.config index 3eb95fa..6460605 100644 --- a/rebar.config +++ b/rebar.config @@ -5,5 +5,8 @@ {git, "git://github.com/DeadZen/goldrush.git", {tag, "0.1.6"}}} ]}. +{xref_checks, []}. +{xref_queries, [{"(XC - UC) || (XU - X - B - lager_default_tracer : Mod)", []}]}. + {cover_enabled, true}. {edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}. diff --git a/tools.mk b/tools.mk index 82a0669..15a55f7 100644 --- a/tools.mk +++ b/tools.mk @@ -4,6 +4,9 @@ test: compile docs: ./rebar doc skip_deps=true +xref: + ./rebar xref skip_deps=true + PLT ?= $(HOME)/.riak_combo_dialyzer_plt LOCAL_PLT = .local_dialyzer_plt DIALYZER_FLAGS ?= -Wunmatched_returns From 002555ae7ca63a908d7bceee962835307eaadd97 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Tue, 28 Jan 2014 14:31:26 -0500 Subject: [PATCH 2/2] Make xref depend on compile --- tools.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.mk b/tools.mk index 15a55f7..8e0e1b9 100644 --- a/tools.mk +++ b/tools.mk @@ -4,7 +4,7 @@ test: compile docs: ./rebar doc skip_deps=true -xref: +xref: compile ./rebar xref skip_deps=true PLT ?= $(HOME)/.riak_combo_dialyzer_plt