-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathrebar.config
More file actions
81 lines (62 loc) · 1.84 KB
/
rebar.config
File metadata and controls
81 lines (62 loc) · 1.84 KB
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
%% == Compiler and Profiles ==
{erl_opts, [
warn_missing_spec,
warn_unused_import,
warn_export_vars,
warnings_as_errors,
verbose,
debug_info
]}.
{minimum_otp_vsn, "26"}.
{profiles, [
{test, [
{extra_src_dirs, ["test/examples"]},
{deps, [{meck, "1.1.0"}]},
{erl_opts, [nowarn_missing_spec, nowarn_export_all]},
{dialyzer, [{warnings, [no_return, error_handling]}, {plt_extra_apps, [common_test]}]},
{ct_opts, [{sys_config, ["./config/test.config"]}, {verbose, true}]},
{cover_enabled, true},
{cover_opts, [verbose]}
]}
]}.
{alias, [
{test, [hank, xref, dialyzer, ct, cover, ex_doc]},
{go, [fmt, hank, xref, dialyzer, {ct, "--verbose"}, {cover, "--verbose"}, ex_doc, escriptize]}
]}.
{shell, [{config, "config/test.config"}]}.
%% == Dependencies and plugins ==
{deps, [{katana_code, "~> 2.4.2"}]}.
{project_plugins, [
{rebar3_hank, "~> 1.6.1"},
{rebar3_hex, "~> 7.0.11"},
{erlfmt, "~> v1.7.0"},
{rebar3_ex_doc, "0.2.30"}
]}.
%% == Documentation ==
%% Extras and sidebar groups are completed in rebar.config.script (doc_rules/**, RULES.md, …).
{ex_doc, [
{source_url, <<"https://github.com/inaka/elvis_core">>},
{main, <<"README.md">>},
{prefix_ref_vsn_with_v, false}
]}.
{hex, [{doc, #{provider => ex_doc}}]}.
%% == Format ==
{erlfmt, [
write,
{files, [
"src/**/*.{hrl,erl,app.src}",
"config/**/*.config",
"test/*.erl",
"*.config.script",
"*.config",
"scripts/*.escript"
]}
]}.
%% == Hank ==
{hank, [{ignore, ["test/*/**"]}]}.
%% == Dialyzer + XRef ==
{dialyzer, [{warnings, [no_return, unmatched_returns, error_handling, unknown]}]}.
{xref_checks, [
undefined_function_calls, deprecated_function_calls, deprecated_functions, exports_not_used
]}.
{xref_extra_paths, ["test/**"]}.