-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
107 lines (95 loc) · 2.7 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
95
96
97
98
99
100
101
102
103
104
105
106
107
{erl_opts,
[
native
,{hipe, o3}
,debug_info
,fail_on_warning
,warnings_as_errors
,{d, 'VSN'}
% Uncomment the below, if you're on 17
%,{d, 'SYSTEM_TIME'}
]
}.
{deps, [
{erlang_testing,
{git, "https://github.com/ruanpienaar/erlang_testing", {tag, "0.0.3"}}}
% {coveralls,
% {git, "https://github.com/markusn/coveralls-erl", {branch, "v2.2.0"}}}
]}.
%{require_otp_vsn, "17.*|18.*|19.*|20.*|21.*"}.
{edoc_opts, [{doclet, edown_doclet}]}.
{eunit_opts, [
% verbose,
% {report,{eunit_surefire,[{dir,"."}]}},
{report, {eunit_progress, [colored, profile]}}
]}.
{eunit_compile_opts, [{i, "../"}]}.
{plugins, [
% {coveralls, {git, "https://github.com/ruanpienaar/coveralls-erl", {tag, "0.0.1"}}}%,
% Comment out below if on 17, seems to crash for me.
rebar3_proper
]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/*.coverdata"}. % or a list of files
{coveralls_service_name , "travis-ci"}.
{cover_excl_mods, [hawk_tcp_dist]}.
% Comment out below if on 17, seems to crash for me.
{profiles,
[{test, [
{deps, [{proper, "1.2.0"}, recon]}
]}
]
}.
%% == Dialyzer ==
{dialyzer, [
{warnings, [
no_return
,no_unused
,no_improper_lists
,no_fun_app
,no_match
,no_opaque
,no_fail_call
,no_contracts
,no_behaviours
,no_undefined_callbacks
,unmatched_returns
,error_handling
,overspecs
,underspecs
,specdiffs
]},
{get_warnings, true},
{plt_apps, all_deps}, % top_level_deps | all_deps
{plt_extra_apps, [hawk]},
{plt_location, local}, % local | "/my/file/name"
{plt_prefix, "rebar3"},
{base_plt_apps, []},
{base_plt_location, global}, % global | "/my/file/name"
{base_plt_prefix, "rebar3"}
]}.
%% == xref ==
{xref_warnings, true}.
%% optional extra paths to include in xref:set_library_path/2.
%% specified relative location of rebar.config.
%% e.g. {xref_extra_paths,["../gtknode/src"]}
%% {xref_extra_paths,[]}.
%% xref checks to run
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
%exports_not_used, ( not useful, since start_link is called by proc_lib, and
% other libs call hawk.erl
deprecated_function_calls,
deprecated_functions
]}.
%% 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 mod:*foo/4
%% functions from undefined external function calls as those are in a
%% generated module
%%{xref_queries,
%% [{"(XC - UC) || (XU - X - B"
%% " - (\"mod\":\".*foo\"/\"4\"))",[]}]}.