From 1726701e2def20759aeda84a22c5e5b4e7655080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D1=85=D0=BE=D1=80=D0=BE=D0=B2?= Date: Sat, 16 Feb 2019 16:15:09 +0100 Subject: [PATCH] Add xref check to travis --- .travis.yml | 1 + rebar.config | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1a27536..ac185d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,5 @@ otp_release: #- 18.3 not supported (string:lexemes/2, tricky binary comprehension, map typespec with `:=`, ?assertEqual/3) script: - ./rebar3 compile + - ./rebar3 xref - ./rebar3 eunit diff --git a/rebar.config b/rebar.config index 03a9ca2..8973ac9 100644 --- a/rebar.config +++ b/rebar.config @@ -6,6 +6,15 @@ {lager, "3.6.3"} ]}. +{xref_checks, + [undefined_function_calls, + undefined_functions, + locals_not_used, + %% exports_not_used, + deprecated_function_calls, + deprecated_functions + ]}. + {relx, [{release, { mtp_proxy, "0.1.0" }, [lager, ranch,