kds/rebar.config
ndiezel0 bbbf99db96
CDS-93: Enable dialyzer rule (#8)
* CDS-93: Enable dialyzer rule

* CDS-93: Type fix
2019-07-16 19:55:35 +03:00

104 lines
2.8 KiB
Erlang

% Common project erlang options.
{erl_opts, [
debug_info,
warnings_as_errors,
warn_export_all,
warn_missing_spec,
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
]}.
% Common project dependencies.
{deps, [
{lib_combin, "0.1.5"},
{jsx, "2.9.0"},
{jose, "1.9.0"},
{recon , "2.3.2"},
{libdecaf, "1.0.0"},
{shamir , {git, "git@github.com:rbkmoney/shamir.git" , {branch, master}}},
{woody , {git, "git@github.com:rbkmoney/woody_erlang.git" , {branch, master}}},
{logger_logstash_formatter, {git, "git@github.com:rbkmoney/logger_logstash_formatter.git", {branch, master}}},
{genlib , {git, "git@github.com:rbkmoney/genlib.git" , {branch, master}}},
{how_are_you , {git, "https://github.com/rbkmoney/how_are_you.git" , {branch, master}}},
{erl_health , {git, "https://github.com/rbkmoney/erlang-health.git" , {branch, master}}},
{cds_proto , {git, "git@github.com:rbkmoney/cds-proto.git" , {branch, master}}},
{msgpack , {git, "https://github.com/rbkmoney/msgpack-erlang" , {branch, master}}},
{scoper , {git, "git@github.com:rbkmoney/scoper.git" , {branch, master}}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
% locals_not_used,
deprecated_functions_calls,
deprecated_functions
]}.
{relx, [
{release, {kds, "0.1.0"}, [
{recon, load},
{libdecaf, load},
{logger_logstash_formatter, load},
kds
]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}
]}.
{dialyzer, [
{warnings, [
unmatched_returns,
error_handling,
race_conditions,
%underspecs,
unknown
]},
{plt_apps, all_deps}
]}.
{profiles, [
{prod, [
{relx, [
{dev_mode, false},
{include_erts, true},
{overlay, []}
]}
]},
{test, []},
{dev, [
{plugins, [
rebar3_run
]}
]}
]}.
{plugins, [
{rebar3_thrift_compiler,
{git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {tag, "0.3.1"}}}
]}.
{overrides, [
{override, rebar3_protobuffs_plugin, [
{deps, [
{protobuffs, {git, "git://github.com/basho/erlang_protobuffs.git", {tag, "0.8.2"}}}
]}
]},
{override, protobuffs, [
{deps, []}
]},
{override, hamcrest, [
{plugins, []}
]}
]}.