Current section

Files

Jump to
meck rebar.config
Raw

rebar.config

{erl_opts, [
% Erlang releases after 17 don't put R in front of their name, and also
% require dict() to be written like dict:dict()
{platform_define, "^R", non_namespaced_types}, % used by meck
{platform_define, "^[0-9]+", namespaced_types} % used by hamcrest
]}.
{profiles, [
{test, [
{erl_opts, [
debug_info,
{platform_define, "^R(?!16B03)", cover_empty_compile_opts}
]},
{cover_enabled, true},
{cover_opts, [verbose]}
]},
{compile, [
{erl_opts, [
debug_info,
warnings_as_errors,
warn_export_all,
warn_export_vars,
warn_shadow_vars,
warn_obsolete_guard,
warn_unused_import
]}
]}
]}.