-
Notifications
You must be signed in to change notification settings - Fork 87
/
rebar.config
58 lines (40 loc) · 1.6 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
%% == Compiler and Profiles ==
{erl_opts,
[warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}.
{minimum_otp_vsn, "25"}.
{profiles,
[{test,
[{extra_src_dirs, [{"test/examples", [{recursive, true}]}]},
{deps, [{mixer, "1.2.0", {pkg, inaka_mixer}}, {meck, "0.9.2"}]},
{ct_opts, [{sys_config, ["./config/test.config"]}, {logdir, "./logs"}, {verbose, true}]},
{cover_enabled, true},
{cover_opts, [verbose]},
{dialyzer,
[{warnings, [no_return, unmatched_returns, error_handling, underspecs, unknown]},
{plt_extra_apps, [meck, dialyzer, common_test, compiler]}]}]}]}.
{alias, [{test, [compile, format, hank, xref, dialyzer, ct, cover, ex_doc]}]}.
{escript_main_app, elvis}.
{escript_name, "elvis"}.
%% == Dependencies and plugins ==
{deps, [{elvis_core, "3.2.5"}, {getopt, "1.0.3"}, {egithub, "0.7.0"}]}.
{project_plugins,
[{rebar3_hank, "~> 1.4.1"},
{rebar3_hex, "~> 7.0.8"},
{rebar3_format, "~> 1.3.0"},
{rebar3_ex_doc, "~> 0.2.24"}]}.
%% == Documentation ==
{ex_doc,
[{source_url, <<"https://github.com/inaka/elvis">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"README.md">>},
{prefix_ref_vsn_with_v, false},
{api_reference, false}]}.
{hex, [{doc, #{provider => ex_doc}}]}.
%% == Format ==
{format, [{files, ["*.config", "src/*", "test/**/*{.erl,.coverspec,.js,.fail}"]}]}.
%% == Dialyzer + XRef ==
{dialyzer,
[{warnings, [no_return, unmatched_returns, error_handling, underspecs, unknown]}]}.
{xref_checks,
[undefined_function_calls, deprecated_function_calls, deprecated_functions]}.
{xref_extra_paths, ["test/**"]}.