-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
55 lines (48 loc) · 1.74 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{erl_opts, [debug_info, warn_missing_spec]}.
{alias, [{test, [compile, ct, xref, dialyzer]}]}.
{deps, [
{amoc, "3.3.0"},
{telemetry, "1.2.1"},
{exometer_core, {git, "https://github.com/esl/exometer_core.git", {branch, "master"}}},
{exometer_report_graphite,
{git, "https://github.com/esl/exometer_report_graphite.git", {branch, "master"}}},
%% when updating amoc_rest version, don't forget to update it at ./doc/http-api.md as well.
{amoc_rest, {git, "https://github.com/esl/amoc_rest.git", {tag, "1.1.2"}}},
{docsh, "0.7.2"}
]}.
{profiles, [
{test, [
{deps, [
{meck, "0.9.2"},
{fusco, "0.1.1"}
]}
]}
]}.
{dialyzer, [
{plt_extra_apps, [compiler, telemetry, amoc, ranch, cowboy, jsx]}
]}.
{ xref_checks, [
%% enable most checks, but avoid 'unused calls' which makes amoc-arsenal fail...
undefined_function_calls, undefined_functions, locals_not_used,
deprecated_function_calls, deprecated_functions
]}.
{overrides, [
%% https://github.com/for-GET/jesse/blob/cf075d213ae9e9c54a748c93cc64d5350e646f9a/rebar.config#L11
%% and OTP26.1 throws warnings for matching on 0.0, as in the future +0.0 and -0.0 will not be considered equal anymore.
{override, jesse, [{erl_opts, [ {platform_define, "^R[0-9]+", erlang_deprecated_types}
, warn_export_vars
, warn_obsolete_guard
, warn_shadow_vars
, warn_untyped_record
, warn_unused_function
, warn_unused_import
, warn_unused_record
, warn_unused_vars
]}]}
]}.
{relx, [
{release, {amoc_arsenal, {git, short}}, [amoc_arsenal, runtime_tools]},
{debug_info, keep},
{dev_mode, false},
{extended_start_script, true}
]}.