forked from mesosphere-backup/navstar01
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
112 lines (95 loc) · 3.95 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
{minimum_otp_vsn, "19.1"}.
{erl_opts, [
debug_info,
warnings_as_errors,
{platform_define, "^[0-9]+", namespaced_types},
{parse_transform, lager_transform}
]}.
{deps, [
{lager, ".*", {git, "https://github.com/basho/lager.git", {tag, "3.2.1"}}},
{eflame, ".*", {git, "https://github.com/slfritchie/eflame.git", {branch, "master"}}},
{eper, ".*", {git, "https://github.com/massemanet/eper.git", {tag, "0.97.1"}}},
{lashup, ".*", {git, "https://github.com/dcos/lashup.git", {branch, "master"}}},
{cowboy, ".*", {git, "https://github.com/ninenines/cowboy.git", {tag, "2.0.0-pre.3"}}},
{jsx, ".*", {git, "https://github.com/talentdeficit/jsx.git", {tag, "v2.8.0"}}},
{dns, {git, "https://github.com/aetrion/dns_erlang.git", {branch, "master"}}},
{mesos_state, {git, "https://github.com/dcos/mesos_state.git", {branch, "master"}}},
{enacl, {git, "https://github.com/jlouis/enacl.git", {branch, "master"}}},
{erlzk, {git, "https://github.com/huaban/erlzk.git", {tag, "v0.6.2"}}},
{gpb, {git, "https://github.com/tomas-abrahamsson/gpb.git", {tag, "3.21.3"}}},
{gen_netlink, ".*", {git, "https://github.com/mesosphere/gen_netlink.git", {branch, "master"}}},
{minuteman, {git, "https://github.com/dcos/minuteman.git", {branch, "master"}}}
]}.
{relx, [{release, {'navstar', "0.1.0"}, [navstar, mnesia, eper, {minuteman, load}, eflame, debugger, observer, runtime_tools]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true},
{overlay, [
{mkdir, "log/sasl"},
{mkdir, "data/"},
{copy, "bin/navstar-env", "bin"}
]}
]}.
{eunit_opts, [{cover_enabled, true}, verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{ct_extra_params, "-config test/ct.config"}.
{edoc_opts, [{preprocess, true}]}.
{cover_enabled, true}.
%% Whether to print coverage report to console. Default is `false'
{cover_print_enabled, true}.
%% Whether to export coverage report to file. Default is `false'
{cover_export_enabled, true}.
{xref_checks, []}.
{xref_queries, [{"(XC - UC) || (XU - X - B - \"(dtrace)\" : Mod)", []}]}.
{plugins, [
{rebar_covertool, ".*", {git, "[email protected]:idubrov/covertool.git", master}}
]}.
{profiles, [
{prod, [
{relx, [
{dev_mode, false},
{include_erts, true}
]}
]},
{dev, [
{erl_opts, [
debug_info,
warnings_as_errors,
{platform_define, "^[0-9]+", namespaced_types},
{parse_transform, lager_transform},
{d, 'DEV', true}
]}
]},
{lint, [
{plugins, [{rebar3_lint, {git, "https://github.com/project-fifo/rebar3_lint.git", {tag, "0.1.6"}}}]}
]},
{docs, [
{deps, [{edown, ".*", {git, "https://github.com/uwiger/edown.git", {branch, "master"}}}]}
]}
]}.
{elvis,
[
#{
dirs => ["src", "test", "apps/navstar_dns/src", "apps/navstar_rest/src", "apps/navstar_overlary/src"],
filter => "*.erl",
ignore => [zbase32],
rules => [
{elvis_style, max_function_length, #{max_length => 30}},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}},
{elvis_style, no_behavior_info},
{elvis_style, used_ignored_variable},
{elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules, #{limit => 25}},
{elvis_style, no_if_expression},
{elvis_style, line_length, #{limit => 120, count_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, macro_names},
{elvis_style, macro_module_names},
{elvis_style, operator_spaces, #{rules => [{right, ","}, {right, "++"}, {left, "++"}]}}
]
}
]
}.