2016-09-16 12:12:50 +00:00
|
|
|
%% Common project erlang options.
|
|
|
|
{erl_opts, [
|
|
|
|
|
|
|
|
% mandatory
|
|
|
|
debug_info,
|
|
|
|
warnings_as_errors,
|
|
|
|
warn_export_all,
|
|
|
|
% due to rebar3 bug erl_opts supersede eunit_compile_opts,
|
|
|
|
% so to make eunit work ignore missing specs in compile for now
|
|
|
|
% which is not a big issue for this tiny lib
|
|
|
|
%
|
|
|
|
% warn_missing_spec,
|
|
|
|
warn_untyped_record,
|
|
|
|
warn_export_vars,
|
|
|
|
|
|
|
|
% by default
|
|
|
|
warn_unused_record,
|
|
|
|
warn_bif_clash,
|
|
|
|
warn_obsolete_guard,
|
|
|
|
warn_unused_vars,
|
|
|
|
warn_shadow_vars,
|
|
|
|
warn_unused_import,
|
|
|
|
warn_unused_function,
|
|
|
|
warn_deprecated_function
|
|
|
|
]}.
|
|
|
|
|
|
|
|
%% Common project dependencies.
|
|
|
|
{deps, [
|
2017-03-16 11:39:02 +00:00
|
|
|
{jsx, "2.8.2"},
|
2018-07-06 12:13:56 +00:00
|
|
|
{rfc3339, "0.2.2"}
|
2016-09-16 12:12:50 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
%% XRef checks
|
|
|
|
{xref_checks, [
|
|
|
|
undefined_function_calls,
|
|
|
|
undefined_functions,
|
|
|
|
deprecated_functions_calls,
|
|
|
|
deprecated_functions
|
|
|
|
]}.
|
|
|
|
% at will
|
|
|
|
% {xref_warnings, true}.
|
|
|
|
|
|
|
|
%% Tests
|
|
|
|
{cover_enabled, true}.
|
|
|
|
|
|
|
|
{profiles, [
|
|
|
|
{test, [
|
2017-03-16 11:39:02 +00:00
|
|
|
{deps, [{lager, "3.2.1"}]}
|
2016-09-16 12:12:50 +00:00
|
|
|
]}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{eunit_compile_opts, [
|
|
|
|
nowarn_missing_spec
|
|
|
|
]}.
|
|
|
|
|