-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
43 lines (35 loc) · 1.24 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
{erl_opts,
[debug_info,
report,
verbose,
warn_export_vars,
warn_keywords,
warn_unused_import,
warnings_as_errors]}.
{deps, []}.
{shell,
% {config, "config/sys.config"},
[{apps, [troll]}]}.
{project_plugins,
[{rebar3_format, "~> 1.2.1"}, {rebar3_hank, "~> 1.3.0"}, {rebar3_lint, "~> 2.0.1"}]}.
{dialyzer,
[{warnings, [unknown, no_return, error_handling]},
{get_warnings, true},
{plt_apps, all_deps},
{plt_extra_apps, []},
{plt_location, local},
{base_plt_apps, [erts, stdlib, kernel, runtime_tools, syntax_tools, compiler, crypto]},
{base_plt_location, "_build/global_plt"}]}.
{xref_checks,
[undefined_function_calls, locals_not_used, exports_not_used, deprecated_function_calls]}.
{hank, [{ignore, [{"src/troll_retro.erl", unnecessary_function_arguments}]}]}.
{elvis,
[#{dirs => ["src"],
filter => "*.erl",
rules =>
[%% obviously an excessive restriction for a debugging tool
{elvis_style, invalid_dynamic_call, #{ignore => [troll]}},
%% prevent demands for DRY-out that isn't worth the loss in readability
{elvis_style, dont_repeat_yourself, #{min_complexity => 14}}],
ruleset => erl_files}]}.
{relx, [{release, {troll, "0.0.1"}, [troll]}, {dev_mode, true}, {include_erts, false}]}.