-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
94 lines (87 loc) · 2.47 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
% Common project erlang options.
{erl_opts, [
debug_info,
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
]}.
% Common project dependencies.
{deps, [
{cowboy, "2.9.0"},
{hackney, "1.18.0"},
{gproc , "0.9.0"},
{cache , "2.3.3"},
{thrift, {git, "/~https://github.com/rbkmoney/thrift_erlang.git", {branch, "master"}}},
{snowflake, {git, "/~https://github.com/rbkmoney/snowflake.git", {branch, "master"}}},
{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,
unknown
]},
{plt_apps, all_deps}
]}.
{profiles, [
{test, [
{extra_src_dirs, [{"test", [{recursive, true}]}]},
{plugins, [
{rebar3_bench, "0.2.1"}
]},
{cover_enabled, true},
{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"},
{gen, "erlang:app_prefix=woody"}
]},
{deps, [
{cth_readable, "1.4.9"},
{proper, "1.4.0"},
{woody_api_hay,{git, "/~https://github.com/rbkmoney/woody_api_hay.git", {branch, "master"}}},
{damsel , {git, "/~https://github.com/rbkmoney/damsel.git", {ref, "8911ac3"}}},
{mg_proto , {git, "/~https://github.com/rbkmoney/machinegun_proto.git", {ref, "ebae56f"}}}
]},
{dialyzer, [
{plt_extra_apps, [how_are_you, eunit, proper, common_test, cth_readable]}
]}
]}
]}.
{plugins, [
{rebar3_thrift_compiler, {git, "/~https://github.com/rbkmoney/rebar3_thrift_compiler.git", {branch, "master"}}},
{erlfmt, "0.14.1"}
]}.
{erlfmt, [
{print_width, 120},
{files, [
"{src,include,test}/*.{hrl,erl}",
"test/*/*.{hrl,erl}"
]}
]}.