2016-04-14 07:40:33 +00:00
|
|
|
% Common project erlang options.
|
|
|
|
{erl_opts, [
|
|
|
|
debug_info,
|
2019-04-19 11:18:32 +00:00
|
|
|
warnings_as_errors,
|
|
|
|
warn_export_all,
|
|
|
|
warn_missing_spec,
|
|
|
|
%warn_untyped_record, %%thanks thrift
|
|
|
|
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
|
2016-04-14 07:40:33 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
% Common project dependencies.
|
|
|
|
{deps, [
|
2021-05-21 10:28:56 +00:00
|
|
|
{cowboy, "2.9.0"},
|
2021-10-01 08:28:53 +00:00
|
|
|
{hackney, "1.18.0"},
|
2021-05-21 10:28:56 +00:00
|
|
|
{gproc , "0.9.0"},
|
2021-01-15 12:35:41 +00:00
|
|
|
{cache , "2.3.3"},
|
2016-04-14 14:38:45 +00:00
|
|
|
{thrift, {git, "https://github.com/rbkmoney/thrift_erlang.git", {branch, "master"}}},
|
2016-08-26 15:15:48 +00:00
|
|
|
{snowflake, {git, "https://github.com/rbkmoney/snowflake.git", {branch, "master"}}},
|
2016-04-14 07:40:33 +00:00
|
|
|
{genlib, {git, "https://github.com/rbkmoney/genlib.git", {branch, "master"}}}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{xref_checks, [
|
|
|
|
undefined_function_calls,
|
|
|
|
undefined_functions,
|
|
|
|
locals_not_used,
|
|
|
|
deprecated_functions_calls,
|
|
|
|
deprecated_functions
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{dialyzer, [
|
|
|
|
{warnings, [
|
|
|
|
unmatched_returns,
|
|
|
|
error_handling,
|
|
|
|
race_conditions,
|
2016-04-19 13:26:05 +00:00
|
|
|
unknown
|
2016-04-14 07:40:33 +00:00
|
|
|
]},
|
|
|
|
{plt_apps, all_deps}
|
2016-05-23 13:26:20 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{profiles, [
|
|
|
|
{test, [
|
2021-01-15 12:35:41 +00:00
|
|
|
{extra_src_dirs, [{"test", [{recursive, true}]}]},
|
2019-12-11 16:07:16 +00:00
|
|
|
{plugins, [
|
2019-12-31 09:52:56 +00:00
|
|
|
{rebar3_bench, "0.2.1"}
|
2019-12-11 16:07:16 +00:00
|
|
|
]},
|
2019-08-26 09:00:47 +00:00
|
|
|
{cover_enabled, true},
|
2016-05-23 13:26:20 +00:00
|
|
|
{provider_hooks, [
|
|
|
|
{pre, [
|
|
|
|
{compile, {thrift, compile}},
|
|
|
|
{clean, {thrift, clean}}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
{thrift_compiler_opts, [
|
|
|
|
{in_dir, "test"},
|
|
|
|
{in_files, ["test.thrift"]},
|
|
|
|
{out_erl_dir, "test"},
|
|
|
|
{out_hrl_dir, "test"},
|
2016-05-25 12:59:01 +00:00
|
|
|
{gen, "erlang:app_prefix=woody"}
|
2018-07-31 07:51:12 +00:00
|
|
|
]},
|
2019-07-05 13:31:58 +00:00
|
|
|
{deps, [
|
2021-01-15 12:35:41 +00:00
|
|
|
{cth_readable, "1.4.9"},
|
2021-08-11 19:24:08 +00:00
|
|
|
{proper, "1.4.0"},
|
|
|
|
{woody_api_hay,{git, "https://github.com/rbkmoney/woody_api_hay.git", {branch, "master"}}},
|
2020-07-09 12:41:45 +00:00
|
|
|
{damsel , {git, "https://github.com/rbkmoney/damsel.git", {ref, "8911ac3"}}},
|
2020-02-04 16:44:37 +00:00
|
|
|
{mg_proto , {git, "https://github.com/rbkmoney/machinegun_proto.git", {ref, "ebae56f"}}}
|
2019-12-31 09:52:56 +00:00
|
|
|
]},
|
2019-07-05 13:31:58 +00:00
|
|
|
{dialyzer, [
|
2021-01-15 12:35:41 +00:00
|
|
|
{plt_extra_apps, [how_are_you, eunit, proper, common_test, cth_readable]}
|
2019-07-05 13:31:58 +00:00
|
|
|
]}
|
2016-05-23 13:26:20 +00:00
|
|
|
]}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{plugins, [
|
2021-01-15 12:35:41 +00:00
|
|
|
{rebar3_thrift_compiler, {git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {branch, "master"}}},
|
2021-05-21 10:28:56 +00:00
|
|
|
{erlfmt, "0.14.1"}
|
2021-01-15 12:35:41 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{erlfmt, [
|
|
|
|
{print_width, 120},
|
|
|
|
{files, [
|
|
|
|
"{src,include,test}/*.{hrl,erl}",
|
|
|
|
"test/*/*.{hrl,erl}"
|
|
|
|
]}
|
2016-05-23 13:26:20 +00:00
|
|
|
]}.
|