From 440ce605d9bb714e19dfa2c205b831ce68b5efc6 Mon Sep 17 00:00:00 2001 From: Duncan McGreggor Date: Thu, 15 Oct 2020 00:15:01 -0500 Subject: [PATCH] Added xref checks. --- .github/workflows/cicd.yml | 2 ++ rebar.config | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index e6e4fe2..71ba16b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -25,5 +25,7 @@ jobs: - uses: actions/checkout@v2 - name: Compile run: rebar3 compile + - name: Xref Check + run: rebar3 xref - name: Run Tests run: rebar3 as test eunit diff --git a/rebar.config b/rebar.config index a22daa9..dc61d0c 100644 --- a/rebar.config +++ b/rebar.config @@ -8,6 +8,11 @@ {color, {git, "https://github.com/julianduque/erlang-color.git", {tag, "v1.0.0"}}} ]}. +{xref_checks,[ + undefined_function_calls,undefined_functions,locals_not_used, + deprecated_function_calls,deprecated_functions +]}. + {pre_hooks, [ %% DEBUG: %% {"(linux|darwin|solaris|freebsd|netbsd|openbsd)", compile,