Skip to content

Commit d3a0be0

Browse files
author
Brujo Benavides
authored
Upgrade formatter to 0.10.1 (#15)
1 parent 92d831e commit d3a0be0

File tree

4 files changed

+52
-78
lines changed

4 files changed

+52
-78
lines changed

elvis.config

+14-26
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
[
2-
{
3-
elvis,
4-
[
5-
{config,
6-
[#{dirs => ["src"],
7-
filter => "*.erl",
8-
ruleset => erl_files,
9-
rules => [
10-
{elvis_style, nesting_level, #{level => 4}},
11-
{elvis_style, dont_repeat_yourself, #{min_complexity => 15}}
12-
]
13-
},
14-
#{dirs => ["."],
15-
filter => "rebar.config",
16-
ruleset => rebar_config
17-
},
18-
#{dirs => ["."],
19-
filter => "elvis.config",
20-
ruleset => elvis_config
21-
}
22-
]
23-
}
24-
]
25-
}
26-
].
1+
[{elvis,
2+
[{config,
3+
[#{dirs => ["src"],
4+
filter => "*.erl",
5+
ruleset => erl_files,
6+
rules =>
7+
[{elvis_style, nesting_level, #{level => 4}},
8+
{elvis_style, dont_repeat_yourself, #{min_complexity => 15}}]},
9+
#{dirs => ["."],
10+
filter => "rebar.config",
11+
ruleset => rebar_config},
12+
#{dirs => ["."],
13+
filter => "elvis.config",
14+
ruleset => elvis_config}]}]}].

old.rebar.config

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{erl_opts, [debug_info]}.
22

3-
{deps, [
4-
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "0.15.2"}}}
5-
]}.
3+
{deps, [{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "0.15.2"}}}]}.

rebar.config

+32-38
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
% -*- mode: erlang -*-
2-
{erl_opts, [
3-
warn_unused_vars,
4-
warn_export_all,
5-
warn_shadow_vars,
6-
warn_unused_import,
7-
warn_unused_function,
8-
warn_bif_clash,
9-
warn_unused_record,
10-
warn_deprecated_function,
11-
warn_obsolete_guard,
12-
strict_validation,
13-
warn_export_vars,
14-
warn_exported_vars,
15-
debug_info
16-
]}.
2+
{erl_opts,
3+
[warn_unused_vars,
4+
warn_export_all,
5+
warn_shadow_vars,
6+
warn_unused_import,
7+
warn_unused_function,
8+
warn_bif_clash,
9+
warn_unused_record,
10+
warn_deprecated_function,
11+
warn_obsolete_guard,
12+
strict_validation,
13+
warn_export_vars,
14+
warn_exported_vars,
15+
debug_info]}.
1716

1817
{minimum_otp_vsn, "20"}.
1918

@@ -23,29 +22,24 @@
2322

2423
{deps, [{jiffy, "1.0.8"}]}.
2524

26-
{dialyzer, [
27-
{warnings, [no_return, error_handling]},
28-
{plt_apps, top_level_deps},
29-
{plt_extra_apps, []},
30-
{plt_location, local},
31-
{base_plt_apps, [erts, stdlib, kernel, inets, crypto, ssl]},
32-
{base_plt_location, global}
33-
]}.
34-
35-
{xref_checks,[
36-
undefined_function_calls,
37-
locals_not_used,
38-
deprecated_function_calls,
39-
deprecated_functions
40-
]}.
25+
{dialyzer,
26+
[{warnings, [no_return, error_handling]},
27+
{plt_apps, top_level_deps},
28+
{plt_extra_apps, []},
29+
{plt_location, local},
30+
{base_plt_apps, [erts, stdlib, kernel, inets, crypto, ssl]},
31+
{base_plt_location, global}]}.
4132

42-
{alias, [{test, [format, lint, hank, xref, dialyzer, eunit, cover]}]}.
33+
{xref_checks,
34+
[undefined_function_calls,
35+
locals_not_used,
36+
deprecated_function_calls,
37+
deprecated_functions]}.
4338

44-
{project_plugins, [
45-
{rebar3_hex, "~> 6.10.2"},
46-
{rebar3_format, "~> 0.9.0"},
47-
{rebar3_lint, "~> 0.3.2"},
48-
{rebar3_hank, "~> 0.2.1"}
49-
]}.
39+
{alias, [{test, [format, lint, hank, xref, dialyzer, eunit, cover]}]}.
5040

51-
{format, [{files, ["src/*.erl", "include/*.hrl"]}]}.
41+
{project_plugins,
42+
[{rebar3_hex, "~> 6.10.2"},
43+
{rebar3_format, "~> 0.10.0"},
44+
{rebar3_lint, "~> 0.3.2"},
45+
{rebar3_hank, "~> 0.2.1"}]}.

src/erliam.app.src

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
{application, erliam,
1+
{application,
2+
erliam,
23
[{description, "AWSv4 signature and IAM credential support"},
34
{vsn, "git"},
45
{registered, [erliam_sup, erliam_srv]},
56
{mod, {erliam_app, []}},
6-
{applications,
7-
[kernel,
8-
stdlib,
9-
inets,
10-
crypto,
11-
ssl,
12-
jiffy]},
7+
{applications, [kernel, stdlib, inets, crypto, ssl, jiffy]},
138
{modules, []},
14-
{env,[]},
15-
{licenses, ["BSD-3-Clause"]}
16-
]}.
9+
{env, []},
10+
{licenses, ["BSD-3-Clause"]}]}.

0 commit comments

Comments
 (0)