-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
104 lines (90 loc) · 2.58 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
{minimum_otp_vsn, "22.0"}.
{deps, [recon]}. % Just for debugging purposes: https://ferd.github.io/recon/
{relx,
[{release, {textgroup, "0.1.0"},
[textgroup,
sasl, % Only required for hot release upgrades.
runtime_tools, % Only required by OTP tracing tools such as Observer.
recon]},
{dev_mode, true},
{debug_info, keep},
{include_erts, false},
{include_src, true},
{sys_config, "config/sys.config"},
{vm_args, "config/vm.args"},
{extended_start_script_hooks,
[{post_start, % Don't let "textgroup daemon" daemonize too early:
[{wait_for_process, textgroup_acceptor_sup}]}]},
{overlay_vars, "vars.config"},
{overlay,
[{copy, "LICENSE", "doc/LICENSE.txt"},
{copy, "README.md", "doc/README.md"},
{template, "config/textgroup.service", "etc/systemd/system/textgroup.service"}]}]}.
{profiles,
[{prod,
[{relx,
[{dev_mode, false},
{debug_info, keep}, % Only required for the rebar3_appup_plugin.
{include_erts, true},
{include_src, false}]}]},
{test,
[{erl_opts,
[nowarn_export_all]}]}]}.
{erl_opts,
[warn_export_vars,
warn_missing_spec_all,
warn_unused_import,
warnings_as_errors,
debug_info]}.
{xref_checks,
[undefined_function_calls,
undefined_functions,
deprecated_function_calls,
deprecated_functions,
locals_not_used]}.
{dialyzer,
[{plt_apps, all_deps},
{warnings,
[unknown,
unmatched_returns,
error_handling]}]}.
{ct_opts,
[{keep_logs, 10},
{config,
["test/textgroup_SUITE.config"]}]}.
{cover_enabled, true}.
{cover_excl_mods,
[textgroup_systemd]}.
{cover_opts,
[verbose,
{min_coverage, 70}]}.
{ex_doc,
[{output, "public"},
{source_url, "https://github.com/weiss/textgroup"},
{package, false}, % Textgroup isn't uploaded to Hex.pm.
{api_reference, false},
{main, "readme"},
{extras,
[{"README.md", #{title => "Overview"}},
{"doc/users.md", #{title => "For Users"}},
{"doc/operators.md", #{title => "For Operators"}},
{"doc/developers.md", #{title => "For Developers"}}]}]}.
{elvis, % See: https://github.com/inaka/erlang_guidelines
[#{dirs => ["src"],
filter => "*.erl",
ruleset => erl_files,
rules => % There are legitimate use cases for 'if':
[{elvis_style, no_if_expression, disable}]},
#{dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config }]}.
{alias,
[{check,
[xref,
dialyzer,
ct,
cover]}]}.
{plugins,
[rebar3_appup_plugin, % For convenient preparation of hot release upgrades.
rebar3_ex_doc, % For pretty documentation.
rebar3_lint]}.