-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
82 lines (73 loc) · 1.96 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
{port_env,
[{"darwin", "LDFLAGS", "-framework CoreFoundation -framework CoreServices"},
{"darwin", "CC", "clang"},
{"darwin", "CFLAGS", "-Wno-deprecated-declarations"},
{"freebsd", "LDFLAGS", ""},
{"freebsd", "CC", "cc"},
{"freebsd", "CFLAGS", ""}]
}.
{hex, [{doc, edoc}]}.
{port_specs,
[{"darwin", "priv/mac_listener", ["c_src/mac/*.c"]},
{"freebsd", "priv/kqueue", ["c_src/bsd/*.c"]}
]}.
{plugins, [pc, rebar3_hex]}.
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
%{pre_hooks, [
% {"win32", compile, "make -f c_src/windows/Makefile"},
% {"win32", clean, "make -f c_src/windows/Makefile clean"}
% ]
%}.
{project_plugins, [rebar3_format]}.
{format, [
{files, ["src/*.erl", "test/*.erl"]},
{formatter, otp_formatter},
{options, #{ line_length => 108,
paper => 250,
spaces_around_fields => false,
inlining => all,
inline_clause_bodies => true,
inline_expressions => true,
inline_qualified_function_composition => true,
inline_simple_funs => true,
inline_items => all,
inline_fields => true,
inline_attributes => true
}}]}.
{xref_checks,[
undefined_function_calls,undefined_functions,locals_not_used,
deprecated_function_calls,deprecated_functions
]}.
{profiles, [
{test, [
{deps, [
{proper, "1.3.0"}
]},
{plugins, [
{rebar3_proper, "0.12.1"}
]},
{eunit_opts, [verbose]},
{erl_opts, [
{src_dirs, ["src", "test"]}
]}
]}
]}.
{alias, [
{coverage, [
{proper, "-c"},
{cover, "-v --min_coverage=0"}
]},
%% Run this next with `rebar3 as test check`
{check, [
compile,
xref,
dialyzer,
eunit,
coverage
]}
]}.