-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebar.config
62 lines (54 loc) · 1.82 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
{erl_opts, [debug_info]}.
{compiler_error_format, rich}.
{deps, [
{aht20, {git, "https://git.sr.ht/~arpunk/aht20", {branch, "master"}}},
{atomvm_lib, {git, "https://github.com/atomvm/atomvm_lib.git", {branch, "master"}}},
{atomvm_ssd1306, {git, "https://github.com/arpunk/atomvm_ssd1306", {branch, "erlang_driver"}}},
{atomvm_neopixel, {git, "https://github.com/atomvm/atomvm_neopixel", {branch, "master"}}},
{atomvm_mqtt_client,
{git, "https://github.com/atomvm/atomvm_mqtt_client.git", {branch, "master"}}}
]}.
{pre_hooks, [
{compile, "./scripts/fw-vsn"}
]}.
{project_plugins, [
atomvm_rebar3_plugin,
rebar3_ex_doc,
rebar3_path_deps,
rebar3_lint,
erlfmt
]}.
{erlfmt, [write]}.
{elvis, [
#{
dirs => ["src/**"],
filter => "*.erl",
ruleset => erl_files,
rules => [
{elvis_style, max_module_length, #{}},
{elvis_style, no_common_caveats_call, #{}},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}},
{elvis_style, export_used_types, disable},
{elvis_style, macro_module_names, disable},
{elvis_style, god_modules, #{limit => 100}},
{elvis_style, no_debug_call, #{debug_functions => [{ct, pal}, {ct, print}]}},
{elvis_text_style, line_length, #{limit => 120, skip_comments => false}}
]
}
]}.
{ex_doc, [
{extras, ["README.md", "LICENSE", "markdown/workshop.md", "markdown/installer.md"]},
{main, "README.md"},
{source_url, "https://github.com/esl/c3card"},
{homepage_url, "https://github.com/esl/c3card"},
{with_mermaid, true}
]}.
{profiles, [
{prod, [
{erl_opts, [debug_info, warnings_as_errors, {d, 'PROD'}]}
]},
{test, [
{erl_opts, [debug_info, nowarn_export_all]},
{deps, [proper]}
]}
]}.