2019-06-21 08:46:13 +00:00
|
|
|
% Common project erlang options.
|
|
|
|
{erl_opts, [
|
|
|
|
debug_info,
|
|
|
|
warnings_as_errors,
|
|
|
|
warn_export_all,
|
|
|
|
warn_missing_spec,
|
2019-07-16 16:55:35 +00:00
|
|
|
warn_untyped_record,
|
2019-06-21 08:46:13 +00:00
|
|
|
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"},
|
2021-01-13 09:30:28 +00:00
|
|
|
{jose, "1.11.1"},
|
2020-10-26 13:52:55 +00:00
|
|
|
{prometheus, "4.6.0"},
|
|
|
|
{prometheus_cowboy, "0.1.8"},
|
2019-07-03 12:29:48 +00:00
|
|
|
{shamir , {git, "git@github.com:rbkmoney/shamir.git" , {branch, master}}},
|
|
|
|
{woody , {git, "git@github.com:rbkmoney/woody_erlang.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}}},
|
2021-01-13 09:30:28 +00:00
|
|
|
{scoper , {git, "git@github.com:rbkmoney/scoper.git" , {branch, master}}},
|
|
|
|
{logger_logstash_formatter, {git, "git@github.com:rbkmoney/logger_logstash_formatter.git", {branch, "master"}}}
|
2019-06-21 08:46:13 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{xref_checks, [
|
|
|
|
undefined_function_calls,
|
|
|
|
undefined_functions,
|
|
|
|
% locals_not_used,
|
|
|
|
deprecated_functions_calls,
|
|
|
|
deprecated_functions
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{dialyzer, [
|
|
|
|
{warnings, [
|
|
|
|
unmatched_returns,
|
|
|
|
error_handling,
|
|
|
|
race_conditions,
|
|
|
|
%underspecs,
|
|
|
|
unknown
|
|
|
|
]},
|
|
|
|
{plt_apps, all_deps}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{profiles, [
|
|
|
|
{prod, [
|
2020-12-02 17:20:44 +00:00
|
|
|
{deps, [
|
|
|
|
{recon, "2.3.2"}
|
|
|
|
]},
|
2019-06-21 08:46:13 +00:00
|
|
|
{relx, [
|
2020-12-02 17:20:44 +00:00
|
|
|
{release, {kds, "0.1.0"}, [
|
|
|
|
{recon, load},
|
|
|
|
{logger_logstash_formatter, load},
|
|
|
|
kds
|
|
|
|
]},
|
|
|
|
{sys_config, "./config/sys.config"},
|
|
|
|
{vm_args, "./config/vm.args"},
|
|
|
|
{mode, minimal},
|
|
|
|
{extended_start_script, true}
|
2019-06-21 08:46:13 +00:00
|
|
|
]}
|
|
|
|
]}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{plugins, [
|
2020-10-14 10:05:42 +00:00
|
|
|
{erlfmt, "0.8.0"},
|
2019-06-21 08:46:13 +00:00
|
|
|
{rebar3_thrift_compiler,
|
|
|
|
{git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {tag, "0.3.1"}}}
|
|
|
|
]}.
|
|
|
|
|
2020-10-14 10:05:42 +00:00
|
|
|
{erlfmt, [
|
|
|
|
{print_width, 120},
|
|
|
|
{files, "apps/*/{src,include,test}/*.{hrl,erl}"}
|
|
|
|
]}.
|
|
|
|
|
2019-06-21 08:46:13 +00:00
|
|
|
{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, []}
|
|
|
|
]}
|
|
|
|
]}.
|