diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | rebar.config | 9 |
2 files changed, 14 insertions, 2 deletions
@@ -10,7 +10,7 @@ # Makefile for the RVI node. # -.PHONY: all deps compile clean rpm rpmclean test ci +.PHONY: all deps compile clean rpm rpmclean test xref ci SCRIPTS=scripts/setup_gen \ scripts/author @@ -49,7 +49,10 @@ rpmclean: ./rpm/SOURCES/* \ ./rpm/SRPMS/* -ci: test +xref: compile + ERL_LIBS=$(PWD):$(PWD)/components:$(PWD)/deps rebar xref skip_deps=true + +ci: xref test test: compile rebar ct diff --git a/rebar.config b/rebar.config index 36933f6..b9d6b9c 100644 --- a/rebar.config +++ b/rebar.config @@ -39,3 +39,12 @@ {exec, ".*", {git, "git://github.com/saleyn/erlexec.git", "HEAD"}}, {gproc, ".*", {git, "git://github.com/uwiger/gproc.git", "HEAD"}} ]}. + +{xref_checks, + [ + undefined_function_calls, + undefined_functions, + locals_not_used, + deprecated_functions_calls, + deprecated_functions + ]}. |