Skip to content

Commit

Permalink
Merge pull request #4346 from apache/find_bugs
Browse files Browse the repository at this point in the history
add find_bugs makefile target for undefined functions
  • Loading branch information
rnewson committed Jan 4, 2023
2 parents f8d489f + d524ddb commit 33ee216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ dialyze: .rebar
@$(REBAR) -r dialyze $(DIALYZE_OPTS)


.PHONY: find_bugs
# target: xref - find unused exports etc
find_bugs:
@$(REBAR) --keep-going --recursive xref $(DIALYZE_OPTS)

.PHONY: introspect
# target: introspect - Check for commits difference between rebar.config and repository
introspect:
Expand Down
1 change: 1 addition & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ AddConfig = [
{lib_dirs, ["src"]},
{erl_opts, [{i, "../"}, {d, 'COUCHDB_ERLANG_VERSION', VerString}]},
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]},
{xref_checks, [undefined_function_calls, undefined_functions]},
{plugins, [eunit_plugin]},
{dialyzer, [
{plt_location, local},
Expand Down

0 comments on commit 33ee216

Please sign in to comment.