From 252b9b695c95b3a8ab57899fd42388c8867a207c Mon Sep 17 00:00:00 2001 From: Fernando 'Brujo' Benavides Date: Mon, 9 May 2011 15:45:20 -0300 Subject: [PATCH] A convenient set of rebar options added to rebar.config --- rebar.config | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index a7e1b04..2c26a72 100644 --- a/rebar.config +++ b/rebar.config @@ -5,4 +5,19 @@ %% uncomment to get verbose output from test suite %% {eunit_opts, [verbose]}. -{erl_opts, [{i, "src"}, {src_dirs, ["src"]}]}. \ No newline at end of file +{erl_opts, [{i, "src"}, {src_dirs, ["src"]}, + warn_unused_vars, + warn_export_all, + warn_shadow_vars, + warn_unused_import, + warn_unused_function, + warn_bif_clash, + warn_unused_record, + warn_deprecated_function, + warn_obsolete_guard, + strict_validation, + warn_export_vars, + warn_exported_vars, + debug_info]}. +{dialyzer_opts, [{warnings, [unmatched_returns, error_handling, race_conditions, behaviours]}]}. +{xref_checks, [undefined_function_calls]}.