-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
117 lines (106 loc) · 3.25 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
108
109
110
111
112
113
114
115
116
117
{erl_opts,
[native
,{hipe, o3}
,debug_info
%,fail_on_warning
,warnings_as_errors
,{d, 'VSN'}
% Uncomment the below, if you're on 17 ( goanna )
%,{d, 'ETS_TAKE'}
% Uncomment the below, if you're on 17 ( hawk )
%,{d, 'SYSTEM_TIME'}
]
}.
{deps, [
{erlang_testing,
{git, "https://github.com/ruanpienaar/erlang_testing", {tag, "0.0.1"}}},
{eper, ".*",
{git, "https://github.com/ruanpienaar/eper", {tag,"1.0.1"}}},
{hawk, ".*",
{git, "https://github.com/ruanpienaar/hawk", {tag,"0.0.1"}}},
{coveralls,
{git, "https://github.com/markusn/coveralls-erl", {tag, "v2.2.0"}}}
]}.
%{require_otp_vsn, "17.*|18.*|19.*|20.*|21.*"}.
{edoc_opts, [{doclet, edown_doclet}]}.
{eunit_opts, [
{report, {eunit_progress, [colored, profile]}}
]}.
{eunit_compile_opts, [{i, "../"}]}.
{escript_main_app, 'goanna'}.
{escript_name, 'goanna'}.
{escript_incl_apps, [hawk]}.
{escript_emu_args, "%%! -smp enable +A 1 +K true -config sys.config -pa ebin -pa deps/*/ebin -setcookie goanna -proto_dist hawk_tcp -hidden\n"}.
{plugins, [
{coveralls, {git, "https://github.com/markusn/coveralls-erl", {tag, "v2.2.0"}}}
% 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, [goanna, goanna_forward_callback_mod, goanna_test_module, goanna_forward_sqlite]}.
% Comment out below if on 17, seems to crash for me.
{profiles,
[{test, [
{deps, [{proper, "1.2.0"}, recon]}
]}
]
}.
%% == Dialyzer ==
{dialyzer, [
{warnings, [
% underspecs, no_return
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
% ,race_conditions
% ,overspecs
% ,underspecs
,specdiffs
]},
{get_warnings, true},
{plt_apps, top_level_deps}, % top_level_deps | all_deps
{plt_extra_apps, [goanna]},
{plt_location, local}, % local | "/my/file/name"
{plt_prefix, "rebar3"},
{base_plt_apps, []},
{exclude_apps, [
kernel,
stdlib
]},
{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,
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\"))",[]}]}.