This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
rebar.config
216 lines (201 loc) · 8.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{min_otp_version, "19.0"}.
{deps, [
{lager, "3.6.8"},
{plumtree, "0.6.0"},
{partisan, "4.1.0"},
{types, "0.1.8"},
lasp_support,
{gen_flow, "0.0.5"},
{gen_fsm_compat, "0.3.0"}
]}.
%% leex options
{xrl_opts, []}.
%% leex files to compile first
{xrl_first_files, ["src/lasp_sql_lexer.xrl"]}.
%% yecc options
{yrl_opts, []}.
%% yecc files to compile first
{yrl_first_files, ["src/lasp_sql_parser.yrl"]}.
{cover_enabled, true}.
{erl_opts, [debug_info,
warnings_as_errors,
nowarn_deprecated_function,
{platform_define, "^[0-9]+", namespaced_types},
{parse_transform, lager_transform}]}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{edoc_opts, [{preprocess, true}]}.
{profiles, [
{exp,
[{erl_opts, [{d, experiments}]},
{deps, [{jsx, "2.9.0"},
{erlcloud, "3.2.4"},
{webmachine, {git, "https://github.com/webmachine/webmachine", {tag, "master"}}},
{sprinter, {git, "git://github.com/lasp-lang/sprinter.git", {tag, "master"}}},
{eredis, "1.2.0"}]},
{src_dirs, ["src", "simulations"]},
{extra_src_dirs, ["simulations"]},
{relx, [{release, {lasp, "0.8.2"}, [erlcloud, jsx, webmachine, eredis, sprinter, jsx, lasp]},
{extended_start_script, true},
{dev_mode, true},
{include_erts, false},
{sys_config, "config/sys.config"},
{vm_args, "config/vm.args"},
{overlay, [{mkdir, "log/sasl"},
{mkdir, "data/"},
{copy, "bin/env", "bin"},
{copy, "bin/ienv", "bin"}
]}]}
]},
{test,
[{erl_opts, [nowarn_export_all, nowarn_deprecated_function]},
{deps, [{jsx, "2.9.0"},
{erlcloud, "3.2.4"},
{webmachine, {git, "https://github.com/webmachine/webmachine", {tag, "master"}}},
{sprinter, {git, "git://github.com/lasp-lang/sprinter.git", {tag, "master"}}},
{eredis, "1.2.0"}]},
{extra_src_dirs, ["simulations"]}
]},
{auto, [
{plugins, [rebar3_auto]}
]},
{package, [
{plugins, [rebar3_hex]}
]},
{lint, [
{plugins, [rebar3_lint]}
]},
{docs, [
{deps, [edown]}
]}
]}.
{elvis,
[#{dirs => ["src"],
filter => "*.erl",
ignore => [lasp_sql_lexer, lasp_sql_parser],
rules => [
%% {elvis_style, line_length,
%% #{ignore => [],
%% limit => 80,
%% skip_comments => false}},
{elvis_style, no_tabs},
%% {elvis_style, no_trailing_whitespace},
{elvis_style, macro_names, #{ignore => []}},
%% {elvis_style, macro_module_names},
{elvis_style, operator_spaces, #{rules => [{right, ","},
{right, "++"},
{left, "++"}]}},
%% {elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules,
#{limit => 25,
ignore => []}},
{elvis_style, no_if_expression},
%% {elvis_style, invalid_dynamic_call, #{ignore => []}},
%% {elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{
elvis_style,
module_naming_convention,
#{regex => "^[a-z]([a-z0-9]*_?)*(_SUITE)?$",
ignore => []}
},
%% {
%% elvis_style,
%% function_naming_convention,
%% #{regex => "^([a-z][a-z0-9]*_?)*$"}
%% },
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records}
%% {elvis_style, dont_repeat_yourself, #{min_complexity => 10}}
%% {elvis_style, no_debug_call, #{ignore => []}}
]
},
#{dirs => ["."],
filter => "Makefile",
rules => [{elvis_project, no_deps_master_erlang_mk, #{ignore => []}},
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => []}}]
},
#{dirs => ["."],
filter => "rebar.config",
rules => [{elvis_project, no_deps_master_rebar, #{ignore => []}},
{elvis_project, protocol_for_deps_rebar, #{ignore => []}}]
}
]
}.
{relx, [{release, {lasp, "0.8.2"}, [lasp]},
{extended_start_script, true},
{dev_mode, true},
{include_erts, false},
{sys_config, "config/sys.config"},
{vm_args, "config/vm.args"},
{overlay, [{mkdir, "log/sasl"},
{mkdir, "data/"},
{copy, "bin/env", "bin"},
{copy, "bin/ienv", "bin"}
]}]}.
{xref_checks, [undefined_function_calls, undefined_functions,
deprecated_function_calls, deprecated_functions]}.
{xref_ignores, [{erlcloud_s3, configure, 3},
{erlcloud_s3, create_bucket, 1},
{erlcloud_s3, put_object, 3},
{lasp_instrumentation, event_number, 1},
{lasp_instrumentation, overcounting, 1},
{eredis,q,2},
{eredis,start_link,2},
{lasp_advertisement_counter_server,stop_simulation,0},
{lasp_advertisement_counter_server,wait_for_connectedness,0},
{lasp_core,start,1},
{lasp_default_broadcast_distribution_backend,init,1},
{lasp_default_broadcast_distribution_backend,servers,0},
{lasp_game_tournament_server,stop_simulation,0},
{lasp_game_tournament_server,wait_for_connectedness,0},
{lasp_instrumentation,batch,3},
{lasp_instrumentation,event,1},
{lasp_instrumentation,simulation_id,0},
{lasp_plumtree_backend,servers,0},
{lasp_state_based_synchronization_backend,handle_info,2},
{lasp_status_resource,to_json,2},
{lasp_support,push_logs,0},
{lasp_throughput_client,log_batch,3},
{lasp_throughput_client,log_event,1},
{lasp_throughput_server,stop_simulation,0},
{lasp_throughput_server,wait_for_connectedness,0},
{lasp_workflow,handle_call,3},
{lasp_workflow,init,1},
{plumtree_gossip_peers,1},
{sprinter,debug_get_tree,2},
{sprinter,nodes,0},
{sprinter,orchestrated,0},
{sprinter,orchestration,0},
{sprinter,servers,0},
{sprinter_backend,debug_get_tree,2},
{sprinter_backend,graph,0},
{sprinter_backend,nodes,0},
{sprinter_backend,servers,0},
{sprinter_backend,tree,0},
{sprinter_backend,was_connected,0},
{lasp_delta_based_synchronization_backend, handle_cast, 2},
{lasp_delta_based_synchronization_backend, handle_info, 2},
{lasp_distribution_backend, handle_call, 3},
{lasp_memory_utilization_report, handle_info, 2},
{lasp_plumtree_memory_report, handle_info, 2},
{lasp_state_based_synchronization_backend, handle_cast, 2},
{lasp_state_based_synchronization_backend, handle_info, 2},
{lasp_support, push_logs, 0},
{lasp_synchronization_backend, log_transmission, 2},
{lasp_throughput_client, handle_info, 2},
{lasp_throughput_client, handle_info, 2},
{lasp_throughput_client, log_convergence, 0},
{lasp_throughput_server, handle_info, 2},
{lasp_throughput_server, handle_info, 2},
{lasp_throughput_server, init, 1},
{lasp_throughput_server, log_convergence, 0},
{lasp_throughput_server, stop_simulation, 0},
{lasp_throughput_server, stop_simulation, 0},
{lasp_instrumentation, convergence, 0},
{lasp_instrumentation, experiment_started, 0},
{lasp_instrumentation, log_files, 0},
{lasp_instrumentation, stop, 0},
{lasp_instrumentation, transmission, 3},
{lasp_kubernetes_simulations, stop, 0},
{lasp_marathon_simulations, log_message_queue_size, 1},
{lasp_marathon_simulations, stop, 0}]}.