33 lines
1.2 KiB
Erlang
33 lines
1.2 KiB
Erlang
{deps,
|
|
%% NOTE: mind poolboy version when updating mongodb-erlang version
|
|
[{mongodb, {git,"https://github.com/emqx/mongodb-erlang", {tag, "v3.0.10"}}},
|
|
%% mongodb-erlang uses a special fork https://github.com/comtihon/poolboy.git
|
|
%% (which has overflow_ttl feature added).
|
|
%% However, it references `{branch, "master}` (commit 9c06a9a on 2021-04-07).
|
|
%% By accident, We have always been using the upstream fork due to
|
|
%% eredis_cluster's dependency getting resolved earlier.
|
|
%% Here we pin 1.5.2 to avoid surprises in the future.
|
|
{poolboy, {git, "https://github.com/emqx/poolboy.git", {tag, "1.5.2"}}}
|
|
]}.
|
|
|
|
{edoc_opts, [{preprocess, true}]}.
|
|
{erl_opts, [warn_unused_vars,
|
|
warn_shadow_vars,
|
|
warn_unused_import,
|
|
warn_obsolete_guard,
|
|
debug_info,
|
|
compressed,
|
|
{parse_transform}
|
|
]}.
|
|
{overrides, [{add, [{erl_opts, [compressed]}]}]}.
|
|
|
|
{xref_checks, [undefined_function_calls, undefined_functions,
|
|
locals_not_used, deprecated_function_calls,
|
|
warnings_as_errors, deprecated_functions
|
|
]}.
|
|
|
|
{cover_enabled, true}.
|
|
{cover_opts, [verbose]}.
|
|
{cover_export_enabled, true}.
|
|
|