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,