snowflake/rebar.config
Andrey Fadeev 563d8ef954
Move warnings_as_errors to dedicated profile (#7)
The library should not block the compilation of other applications
2020-05-26 12:05:30 +03:00

52 lines
858 B
Erlang

%%-*- mode: erlang -*-
{erl_opts, [
debug_info,
warn_untyped_record,
warn_export_vars,
warn_unused_record,
warn_bif_clash,
warn_obsolete_guard,
warn_unused_vars,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_deprecated_function,
warn_export_all
]}.
%% XRef checks
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_functions_calls,
deprecated_functions
]}.
% at will
% {xref_warnings, true}.
%% Tests
{cover_enabled, true}.
{deps, []}.
%% Dialyzer static analyzing
{dialyzer, [
{warnings, [
% mandatory
unmatched_returns,
error_handling,
race_conditions,
unknown
]},
{plt_apps, all_deps}
]}.
{profiles, [
{strict, [
{erl_opts, [
warnings_as_errors
]}
]}
]}.