-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
60 lines (51 loc) · 1.43 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
{erl_opts, [debug_info]}.
{deps, [
{proper, {git, "https://github.com/proper-testing/proper.git", {tag, "v1.3"}}}
]}.
{shell, [
% {config, "config/sys.config"},
{apps, [erl_json]}
]}.
{post_hooks, [
{compile, "cargo build --manifest-path=lib_json/Cargo.toml --release"},
{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", compile, "cp 'lib_json/target/release/liberl_json.so' 'priv'"},
{"win32", compile, "copy lib_json\\target\\release\\erl_json.dll priv\\liberl_json.dll"}
]}.
{project_plugins, [
{rebar3_proper, {git, "https://github.com/ferd/rebar3_proper.git", {tag, "0.12.1"}}},
{erlfmt, {git, "https://github.com/WhatsApp/erlfmt.git", {tag, "v0.10.0"}}}
]}.
{erlfmt, [write]}.
{alias, [
{check, [
xref,
dialyzer,
edoc,
{proper, "--regressions"},
ct
]}
]}.
{dialyzer, [
{warnings, [
%% Warn about undefined types and unknown functions
unknown
]}
]}.
{xref_checks, [
%% enable most checks, but avoid 'unused calls' which is often
%% very verbose
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.
{profiles, [
{test, [
%% Avoid warnings when test suites use `-compile(export_all)`
{erl_opts, [nowarn_export_all]},
{deps, [
{jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "v3.0.0"}}}
]}
]}
]}.