-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
49 lines (39 loc) · 1.48 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
%% Where to put any downloaded depandencies. Default is `deps'
% {deps_dir, ["../deps"]}.
{deps, [
{lager, ".*", {git, "git://github.com/basho/lager.git", "master"}},
{cowboy, ".*", {git, "git://github.com/extend/cowboy.git", "0.8.3"}},
{folsom, ".*", {git, "git://github.com/boundary/folsom.git", "master"}},
{folsomite, ".*", {git, "git://github.com/campanja/folsomite.git", "master"}}
]}.
{sub_dirs, ["rel"]}.
%{clean_files, ["*.eunit", "ebin/*.beam"]}.
%{eunit_opts, [verbose,
% {report, {eunit_surefire, [{dir, "."}]}}]}.
%{cover_enabled, true}.
{erl_opts, [
{parse_transform, lager_transform},
% debug_info,
fail_on_warning,
% bin_opt_info,
warn_unused_vars,
warn_shadow_vars,
warn_unused_import
,
inline,
native,
{hipe, [o2]}
]}.
%% == xref ==
{xref_warnings, true}.
%% xref checks to run
%%{xref_checks, [exports_not_used, undefined_function_calls]}.
{xref_checks, [exports_not_used, undefined_function_calls]}.
%% Optional custom xref queries (xref manual has details) specified as
%% {xref_queries, [{query_string(), expected_query_result()},...]}
%% The following for example removes all references to ejabberd:*_msg/4
%% functions from undefined external function calls as those are in a
%% generated module
%%{xref_queries,
%% [{"(XC - UC) || (XU - X - B"
%% " - (\"ejabberd_logger\":\".*_msg\"/\"4\"))",[]}]}.