-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrebar.config
120 lines (108 loc) · 2.44 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
118
119
120
{erl_opts, [debug_info, verbose]}.
{erl_first_files, [
"src/merlin.erl"
"src/merlin_annotations.erl",
"src/merlin_bindings.erl",
"src/merlin_error.erl",
"src/merlin_internal.erl",
"src/merlin_lib.erl",
"src/merlin_module.erl"
]}.
{deps, []}.
{project_plugins, [
erlfmt,
rebar3_ex_doc,
rebar3_hex
]}.
{erlfmt, [
write,
{print_width, 88},
{files, ["{src,include,test,examples}/*.{hrl,erl,app.src}", "rebar.config"]}
]}.
{hex, [{doc, ex_doc}]}.
{shell, [{config, "priv/sys.config"}]}.
{eunit_opts, [
no_tty,
{report, {unite_compact, []}},
{sys_config, "priv/app.config"}
]}.
{cover_excl_mods, [merlin_internal]}.
{dialyzer, [
{warnings, [
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,
underspecs
% overspecs
% specdiffs
]},
{base_plt_apps, [
crypto,
debugger,
erts,
kernel,
stdlib,
syntax_tools
]}
]}.
{xref_warnings, true}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
%% exports_not_used,
deprecated_function_calls,
deprecated_functions
]}.
{xref_ignores, [color, tdiff]}.
{edoc_opts, [{preprocess, true}]}.
{ex_doc, [
{source_url, <<"https://github.com/kivra/merlin">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"readme">>},
{skip_undefined_reference_warnings_on, [
]}
]}.
{profiles, [
{repl, [
{erl_opts, [{d, 'MERLIN_INTERNAL_EXPORT_ALL', true}]}
]},
{'E', [
{pre_hooks, [{compile, "sh priv/scripts/copy-beams.sh"}]},
{erl_opts, ['E']}
]},
{'P', [
{pre_hooks, [{compile, "sh priv/scripts/copy-beams.sh"}]},
{erl_opts, ['P']}
]},
{examples, [
{pre_hooks, [{compile, "sh priv/scripts/copy-beams.sh"}]},
{erl_opts, ['E']},
{extra_src_dirs, ["examples"]}
]},
{test, [
{cover_enabled, true},
{xref_ignores, []},
{deps, [
erlfmt,
proper,
unite
]},
{provider_hooks, [
{post, [{eunit, cover}]}
]},
{post_hooks, [
{eunit, "escript priv/scripts/gen-lcov.escript"}
]}
]}
]}.