-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebar.config
102 lines (91 loc) · 2.19 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
{erl_opts, [
warnings_as_errors,
{src_dirs, ["src", "_gen/dtos"]}
]}.
{deps, [
{elli, {git, "https://github.com/elli-lib/elli.git", {branch, "main"}}},
{ndto, {git, "https://github.com/nomasystems/ndto.git", {tag, "0.3.1"}}},
{njson, {git, "https://github.com/nomasystems/njson.git", {tag, "2.0.0"}}}
]}.
{plugins, [
{rebar3_ndto, {git, "https://github.com/nomasystems/rebar3_ndto.git", {tag, "0.3.1"}}}
]}.
{ndto, [
{specs, [
"priv/oas/3.0/specs/oas_3_0.json"
]}
]}.
{provider_hooks, [
{pre, [
{compile, {ndto, compile}},
{clean, {ndto, clean}}
]}
]}.
{project_plugins, [
erlfmt,
{gradualizer, {git, "https://github.com/josefs/Gradualizer.git", {tag, "0.3.0"}}},
rebar3_ex_doc
]}.
{erlfmt, [write]}.
{profiles, [
{examples, [
{project_app_dirs, ["examples/users", "."]},
{shell, [
{apps, [users]}
]}
]},
{test, [
{erl_opts, [nowarn_export_all]},
{deps, [
{meck, {git, "https://github.com/eproxus/meck.git", {branch, "master"}}},
{nct_util, {git, "https://github.com/nomasystems/nct_util.git", {branch, "main"}}}
]}
]}
]}.
{alias, [
{check, [
{fmt, "--check"},
xref,
dialyzer,
gradualizer
]},
{test, [
{ct, "--spec test/conf/test.spec --cover --readable true"},
cover
]},
{doc, [
{ex_doc, "-f html"}
]}
]}.
{ex_doc, [
{extras, [
{"README.md", #{title => "Overview"}},
{"CONTRIBUTING.md", #{title => "Contributing"}},
{"LICENSE", #{title => "License"}}
]},
{main, "README.md"},
{source_url, "https://github.com/nomasystems/erf"},
{prefix_ref_vsn_with_v, false}
]}.
{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_excl_mods, [
erf_static
]}.
{xref_ignores, [
erf,
{erf_http_server, start_link, 4},
{erf_http_server_elli, handle, 2},
{erf_http_server_elli, handle_event, 3},
{erf_router, handle, 2},
{erf_static, mime_type, 1},
erf_telemetry
]}.
{gradualizer_opts, [
%% TODO: address
{exclude, [
"src/erf.erl",
"src/erf_router.erl",
"src/erf_telemetry.erl"
]}
]}.