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, [
|
MSPF-428: Erlang OTP 21 to master (#86)
* MSPF-394/Migrate woody_erlang to cowboy 2.5.0 (#82)
* Renewed some old cowboy syntax
* Reworked types to fit new cowboy/ranch versions
* Replaced cowboy tuples with separate values
* Fixed types, deleted testing logs, deleted redundant errors
* Moved to new StackTrace retrieval syntax for Erlang/OTP 21
* Restored default config, fixed typing
* Cleaned unnessesary changes, removed export_all
* Restored genlib cached version
* Downgraded to old stacktrace retrieval syntax, fixed codestyle
* Restored new StackTrace retrieval syntax, updated build image
* Changed rebar3 version for CI
* Corrected typing and spelling, removed unnessesary supervisor
* Created stream handler to replace hooks
* Added options for reading body
* Simplified stream handler
* Fixed wrong module name, added read body options support in stream handler
* Puted read body opts to env, renamed stream handler
* Codestyle, types and config fixes
* Moved response tracing to a separate function, now tracing failed requests too
* Changed options to map (#83)
* Fixed wrong timeout override logic (#84)
* Patch merge conflict
* Bump dependencies (#87)
* bumped hackney
* bumped erlang thrift commit
2019-03-28 14:52:17 +00:00
|
|
|
{cowboy, "2.5.0"},
|
2019-04-02 16:00:07 +00:00
|
|
|
{hackney, "1.15.1"},
|
2018-07-06 12:35:20 +00:00
|
|
|
{rfc3339, "0.2.2"},
|
2018-07-31 07:51:12 +00:00
|
|
|
{gproc , "0.8.0"},
|
|
|
|
{cache , "2.2.0"},
|
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, [
|
|
|
|
{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
|
|
|
]},
|
|
|
|
{deps, [{proper, "1.2.0"}]}
|
2016-05-23 13:26:20 +00:00
|
|
|
]}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{plugins, [
|
2019-04-19 07:08:35 +00:00
|
|
|
{rebar3_thrift_compiler, {git, "https://github.com/rbkmoney/rebar3_thrift_compiler.git", {tag, "0.3.0"}}}
|
2016-05-23 13:26:20 +00:00
|
|
|
]}.
|