-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebar.config
102 lines (85 loc) · 1.94 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
% -*- mode: erlang; -*- vim: set ft=erlang:
%% == Erlang Compiler == %%
{minimum_otp_vsn, "21.0"}. % but only 22+ is supported
{erl_opts, [
debug_info,
warn_export_vars,
warn_missing_spec,
warn_unused_import,
warnings_as_errors,
{platform_define, "^22\\.", 'NO_CT_SUITE_BEHAVIOUR'},
{platform_define, "^23\\.[0-1]", 'NO_CT_SUITE_BEHAVIOUR'}
]}.
%% == Dependencies and plugins ==
{deps, []}.
{project_plugins, [
{rebar3_ex_doc, "0.2.16"},
{rebar3_hank, "1.3.0"}, % excluded on OTP 22 (see rebar.config.script)
{rebar3_hex, "7.0.4"},
{rebar3_lint, "2.0.1"}
]}.
%% == Dialyzer ==
{dialyzer, [
{warnings, [
error_handling,
underspecs,
unknown,
unmatched_returns
]},
{plt_extra_apps, [
common_test
]}
]}.
%% == Xref ==
{xref_checks, [
deprecated_function_calls,
exports_not_used,
locals_not_used,
undefined_function_calls
]}.
%% == Profiles ==
{profiles, [
{test, [
{erl_opts, [
debug_info,
nowarn_export_all,
nowarn_missing_spec,
nowarnings_as_errors
]},
{shell, [
{apps, [lager]},
{config, "test/config/sys.config"}
]},
{cover_enabled, true},
{cover_opts, [verbose]}
]},
{docs, [
{edoc_opts, [
{preprocess, true},
{doclet, edoc_doclet_chunks},
{layout, edoc_layout_chunks},
{dir, "_build/default/lib/lager/doc"}
]}
]}
]}.
%% == ex_doc ==
{ex_doc, [
{source_url, <<"https://github.com/g-andrade/fake_lager">>},
{extras, [<<"README.md">>, <<"CHANGELOG.md">>, <<"LICENSE">>]},
{main, <<"readme">>},
{proglang, erlang}
]}.
{hex, [
{doc, #{
provider => ex_doc
}}
]}.
%% == rebar3_hank ==
{hank, [
{ignore, [
{"include/lager.hrl", [
single_use_hrl_attrs,
unused_macros
]}
]}
]}.