2016-08-24 11:27:31 +00:00
|
|
|
%% Common project erlang options.
|
|
|
|
{erl_opts, [
|
|
|
|
% mandatory
|
|
|
|
debug_info,
|
|
|
|
warnings_as_errors,
|
|
|
|
warn_export_all,
|
|
|
|
warn_missing_spec,
|
2017-05-17 21:24:55 +00:00
|
|
|
%% warn_untyped_record, FIXME ASAP!!!! Problem in thrift_protocol.hrl#L23
|
2016-08-24 11:27:31 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
% at will
|
|
|
|
% bin_opt_info
|
|
|
|
% no_auto_import
|
|
|
|
% warn_missing_spec_all
|
|
|
|
]}.
|
|
|
|
|
|
|
|
%% Common project dependencies.
|
|
|
|
{deps, [
|
2020-10-23 14:45:41 +00:00
|
|
|
{prometheus, "4.6.0"},
|
|
|
|
{prometheus_cowboy, "0.1.8"},
|
2018-05-08 10:23:24 +00:00
|
|
|
{genlib , {git, "https://github.com/rbkmoney/genlib.git", {branch, "master"}}},
|
2020-01-27 15:35:33 +00:00
|
|
|
{woody , {git, "https://github.com/rbkmoney/woody_erlang.git", {branch, "master"}}},
|
2020-03-10 15:19:05 +00:00
|
|
|
{damsel , {git, "git@github.com:rbkmoney/damsel.git", {branch, "release/erlang/master"}}},
|
2020-01-27 15:35:33 +00:00
|
|
|
{mg_proto , {git, "https://github.com/rbkmoney/machinegun_proto.git", {branch, "master"}}},
|
2018-05-08 10:23:24 +00:00
|
|
|
{dmt_core , {git, "git@github.com:rbkmoney/dmt_core.git", {branch, "master"}}},
|
2020-01-27 15:35:33 +00:00
|
|
|
{logger_logstash_formatter, {git, "https://github.com/rbkmoney/logger_logstash_formatter.git", {branch, "master"}}},
|
|
|
|
{scoper , {git, "https://github.com/rbkmoney/scoper.git", {branch, "master"}}},
|
2018-04-12 14:27:59 +00:00
|
|
|
{erl_health , {git, "https://github.com/rbkmoney/erlang-health.git", {branch, master}}},
|
2016-09-07 19:43:14 +00:00
|
|
|
|
|
|
|
% TODO move to the test profile as soon as compose quirks get fixed
|
2016-10-13 17:49:40 +00:00
|
|
|
{dmt_client, {git, "git@github.com:rbkmoney/dmt_client.git", {branch, "master"}}}
|
2016-08-24 11:27:31 +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}.
|
|
|
|
|
|
|
|
%% Relx configuration
|
|
|
|
{relx, [
|
|
|
|
{release, {dominant, "0.1"}, [
|
2017-03-29 15:27:11 +00:00
|
|
|
dmt_api
|
2016-08-24 11:27:31 +00:00
|
|
|
]},
|
|
|
|
{sys_config, "./config/sys.config"},
|
|
|
|
{vm_args, "./config/vm.args"},
|
|
|
|
{dev_mode, true},
|
|
|
|
{include_erts, false},
|
2020-10-23 14:45:41 +00:00
|
|
|
{include_src, false},
|
2016-08-24 11:27:31 +00:00
|
|
|
{extended_start_script, true}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
%% Dialyzer static analyzing
|
|
|
|
{dialyzer, [
|
|
|
|
{warnings, [
|
|
|
|
% mandatory
|
|
|
|
unmatched_returns,
|
|
|
|
error_handling,
|
2016-09-07 19:43:14 +00:00
|
|
|
race_conditions
|
|
|
|
% unknown %% need fix
|
2016-08-24 11:27:31 +00:00
|
|
|
]},
|
|
|
|
{plt_apps, all_deps}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{profiles, [
|
2016-09-07 19:43:14 +00:00
|
|
|
|
|
|
|
{test, [
|
|
|
|
{deps, [
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
2016-08-24 11:27:31 +00:00
|
|
|
{prod, [
|
2017-03-29 15:27:11 +00:00
|
|
|
{deps, [
|
|
|
|
% for introspection on production
|
2020-06-22 10:56:37 +00:00
|
|
|
{recon , "2.5.1"},
|
|
|
|
{observer_cli , "1.5.4"}
|
2017-03-29 15:27:11 +00:00
|
|
|
]},
|
2016-08-24 11:27:31 +00:00
|
|
|
{relx, [
|
2017-03-29 15:27:11 +00:00
|
|
|
{release, {dominant, "0.1"}, [
|
|
|
|
{recon , load }, % tools for introspection
|
2018-12-18 14:57:23 +00:00
|
|
|
{observer_cli , load }, % remote introspection
|
2017-03-29 15:27:11 +00:00
|
|
|
{runtime_tools, load }, % debugger
|
|
|
|
{tools , load }, % profiler
|
|
|
|
sasl,
|
2019-06-25 16:08:15 +00:00
|
|
|
logger_logstash_formatter,
|
2017-03-29 15:27:11 +00:00
|
|
|
dmt_api
|
|
|
|
]},
|
2016-08-24 11:27:31 +00:00
|
|
|
{dev_mode, false},
|
|
|
|
{include_erts, true}
|
|
|
|
]}
|
|
|
|
]}
|
2016-09-07 19:43:14 +00:00
|
|
|
|
2016-08-24 11:27:31 +00:00
|
|
|
]}.
|
2020-10-13 15:28:11 +00:00
|
|
|
|
|
|
|
{plugins, [
|
|
|
|
{erlfmt, "0.8.0"}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{erlfmt, [
|
|
|
|
{print_width, 120},
|
|
|
|
{files, "{src,include,test}/*.{hrl,erl}"}
|
|
|
|
]}.
|