|
1 |
| -%%-*- mode: erlang -*- |
2 |
| -{cover_enabled, true}. |
3 |
| - |
4 | 1 | {erl_opts, [
|
5 | 2 | debug_info,
|
6 | 3 | fail_on_warning,
|
|
10 | 7 |
|
11 | 8 | {minimum_otp_vsn, "27"}.
|
12 | 9 |
|
13 |
| -{project_plugins, [erlfmt, rebar3_depup]}. |
| 10 | +{project_plugins, [ |
| 11 | + {rebar3_depup, "0.4.0"}, |
| 12 | + {rebar3_hex, "~> 7.0"}, |
| 13 | + {rebar3_ex_doc, "~> 0.2"}, |
| 14 | + {erlfmt, "~> 1.6"} |
| 15 | +]}. |
14 | 16 |
|
15 | 17 | {deps, [
|
16 | 18 | {lager, "3.9.2"},
|
|
22 | 24 | {opentelemetry_api, "1.4.0"},
|
23 | 25 | {meck, "1.0.0"}
|
24 | 26 | ]}.
|
25 |
| -{profiles, [{test, [{deps, [proper]}]}]}. |
26 | 27 |
|
27 |
| -{format, [ |
28 |
| - {formatter, default_formatter}, |
29 |
| - {files, ["src/**/*.?rl", "include/**/*.?rl"]}, |
30 |
| - {options, #{ |
31 |
| - paper => 160, |
32 |
| - ribbon => 150, |
33 |
| - inline_attributes => none, |
34 |
| - inline_qualified_function_composition => true |
35 |
| - }} |
| 28 | +{profiles, [ |
| 29 | + {test, [ |
| 30 | + {deps, [{proper, "1.4.0"}]}, |
| 31 | + {erl_opts, [nowarn_export_all, nowarn_missing_spec, nowarn_missing_doc]}, |
| 32 | + {covertool, [{coverdata_files, ["eunit.coverdata", "ct.coverdata"]}]}, |
| 33 | + %% Increment min_coverage when deprecations are removed |
| 34 | + {cover_opts, [verbose, {min_coverage, 40}]}, |
| 35 | + {cover_enabled, true}, |
| 36 | + {cover_export_enabled, true} |
| 37 | + ]} |
36 | 38 | ]}.
|
| 39 | + |
37 | 40 | {depup, [{only, minor}]}.
|
38 | 41 |
|
39 | 42 | {shell, [{apps, [erldns]}, {config, "erldns.config"}]}.
|
|
50 | 53 | {extended_start_script, true}
|
51 | 54 | ]}.
|
52 | 55 |
|
53 |
| -{overrides, [ |
54 |
| - {override, dns_erlang, [ |
55 |
| - {plugins, [{provider_asn1, "0.2.3"}]}, |
56 |
| - {provider_hooks, [ |
57 |
| - {pre, [{compile, {asn, compile}}]}, |
58 |
| - {post, [{clean, {asn, clean}}]} |
59 |
| - ]} |
60 |
| - ]} |
61 |
| -]}. |
62 | 56 | {dialyzer, [{warnings, [no_unknown]}]}.
|
63 | 57 | {erlfmt, [write, {print_width, 140}]}.
|
64 | 58 |
|
| 59 | +{xref_checks, [ |
| 60 | + locals_not_used, |
| 61 | + undefined_functions, |
| 62 | + undefined_function_calls, |
| 63 | + {deprecated_function_calls, next_major_release}, |
| 64 | + {deprecated_functions, next_major_release} |
| 65 | +]}. |
| 66 | + |
| 67 | +{hex, [{doc, #{provider => ex_doc}}]}. |
| 68 | + |
| 69 | +{ex_doc, [ |
| 70 | + {source_url, <<"https://github.com/dnsimple/erldns">>}, |
| 71 | + {main, <<"readme">>}, |
| 72 | + {extras, [ |
| 73 | + {'README.md', #{title => <<"Overview">>}}, |
| 74 | + {'LICENSE.md', #{title => <<"License">>}} |
| 75 | + ]} |
| 76 | +]}. |
| 77 | + |
65 | 78 | %% This is a rebar3-ism
|
0 commit comments