Skip to content

Commit e07bd78

Browse files
Merge pull request #572 from inaka/elbrujohalcon.571.update-deps
Fix #571: Upgrade deps
2 parents a482801 + 11c17df commit e07bd78

11 files changed

+34
-39
lines changed

.github/workflows/ci.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ${{matrix.os}}
1414
strategy:
1515
matrix:
16-
otp_vsn: ["21", "22", "23"]
17-
os: [ubuntu-latest]
16+
otp_vsn: [23, 24, 25]
17+
os: [ubuntu-20.04]
1818
steps:
1919
- name: Install Git 2.18
2020
shell: bash
@@ -28,13 +28,12 @@ jobs:
2828
sudo make prefix=/usr/local all
2929
sudo make prefix=/usr/local install
3030
cd $HOME
31-
- uses: actions/checkout@v2
32-
with:
33-
fetch-depth: 0
34-
- uses: erlef/[email protected]
31+
- uses: actions/checkout@v3
32+
- uses: erlef/setup-beam@v1
33+
id: setup-beam
3534
with:
3635
otp-version: ${{matrix.otp_vsn}}
37-
rebar3-version: '3.14'
36+
rebar3-version: '3.20'
3837
- shell: bash
3938
run: rebar3 dialyzer
4039
- shell: bash

elvis.config

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
filter => "*.erl",
88
ruleset => erl_files
99
},
10-
#{dirs => ["."],
11-
filter => "Makefile",
12-
ruleset => makefiles
13-
},
1410
#{dirs => ["."],
1511
filter => "rebar.config",
1612
ruleset => rebar_config

rebar.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
%% == Dependencies ==
6565

66-
{deps, [ {elvis_core, "1.3.1"}
66+
{deps, [ {elvis_core, "3.0.1"}
6767
, {getopt, "1.0.2"}
6868
, {egithub, "0.7.0"}
6969
]}.

rebar.lock

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{"1.2.0",
2-
[{<<"certifi">>,{pkg,<<"certifi">>,<<"2.8.0">>},2},
2+
[{<<"certifi">>,{pkg,<<"certifi">>,<<"2.11.0">>},2},
33
{<<"egithub">>,{pkg,<<"egithub">>,<<"0.7.0">>},0},
4-
{<<"elvis_core">>,{pkg,<<"elvis_core">>,<<"1.3.1">>},0},
4+
{<<"elvis_core">>,{pkg,<<"elvis_core">>,<<"3.0.1">>},0},
55
{<<"getopt">>,{pkg,<<"getopt">>,<<"1.0.2">>},0},
66
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
77
{<<"hackney">>,{pkg,<<"hackney">>,<<"1.17.1">>},1},
88
{<<"idna">>,{pkg,<<"idna">>,<<"6.1.1">>},2},
99
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.10.0">>},1},
10-
{<<"katana_code">>,{pkg,<<"katana_code">>,<<"1.1.2">>},1},
10+
{<<"katana_code">>,{pkg,<<"katana_code">>,<<"2.0.2">>},1},
1111
{<<"lager">>,{pkg,<<"lager">>,<<"3.9.1">>},1},
1212
{<<"metrics">>,{pkg,<<"metrics">>,<<"1.0.1">>},2},
1313
{<<"mimerl">>,{pkg,<<"mimerl">>,<<"1.2.0">>},2},
1414
{<<"parse_trans">>,{pkg,<<"parse_trans">>,<<"3.4.1">>},2},
15-
{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.6">>},2},
15+
{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.7">>},2},
1616
{<<"unicode_util_compat">>,{pkg,<<"unicode_util_compat">>,<<"0.7.0">>},2},
1717
{<<"zipper">>,{pkg,<<"zipper">>,<<"1.0.1">>},1}]}.
1818
[
1919
{pkg_hash,[
20-
{<<"certifi">>, <<"D4FB0A6BB20B7C9C3643E22507E42F356AC090A1DCEA9AB99E27E0376D695EBA">>},
20+
{<<"certifi">>, <<"5ADFE37CEB8569D019F836944AEAF27F8AC391DACAF3707F570C155B7E03AAA8">>},
2121
{<<"egithub">>, <<"CFF720B2ADE8A0528B8861D2309339FD3C1C289B9BCB9E498FF77C619CE28AF2">>},
22-
{<<"elvis_core">>, <<"844C339300DD3E9F929A045932D25DC5C99B4603D47536E995198143169CDF26">>},
22+
{<<"elvis_core">>, <<"EA8EB07EAA0236A682FC58F82C1138A65D35F5947294FA6D825402E0F33EA4B2">>},
2323
{<<"getopt">>, <<"33D9B44289FE7AD08627DDFE1D798E30B2DA0033B51DA1B3A2D64E72CD581D02">>},
2424
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
2525
{<<"hackney">>, <<"08463F93D2CC1A03817BF28D8DAE6021543F773BD436C9377047224856C4422C">>},
2626
{<<"idna">>, <<"8A63070E9F7D0C62EB9D9FCB360A7DE382448200FBBD1B106CC96D3D8099DF8D">>},
2727
{<<"jsx">>, <<"77760560D6AC2B8C51FD4C980E9E19B784016AA70BE354CE746472C33BEB0B1C">>},
28-
{<<"katana_code">>, <<"4336743263236C3213FF1B979ECAE263940B9084ACE90E9434838F3F98CCA578">>},
28+
{<<"katana_code">>, <<"FAC8F2ABFB2ED54304EE44EEEEC30275BD026550533D094265A51927D7D9470D">>},
2929
{<<"lager">>, <<"5885BC71308CD38F9D025C8ECDE4E5CCE1CE8565F80BFC6199865C845D6DBE95">>},
3030
{<<"metrics">>, <<"25F094DEA2CDA98213CECC3AEFF09E940299D950904393B2A29D191C346A8486">>},
3131
{<<"mimerl">>, <<"67E2D3F571088D5CFD3E550C383094B47159F3EEE8FFA08E64106CDF5E981BE3">>},
3232
{<<"parse_trans">>, <<"6E6AA8167CB44CC8F39441D05193BE6E6F4E7C2946CB2759F015F8C56B76E5FF">>},
33-
{<<"ssl_verify_fun">>, <<"CF344F5692C82D2CD7554F5EC8FD961548D4FD09E7D22F5B62482E5AEAEBD4B0">>},
33+
{<<"ssl_verify_fun">>, <<"354C321CF377240C7B8716899E182CE4890C5938111A1296ADD3EC74CF1715DF">>},
3434
{<<"unicode_util_compat">>, <<"BC84380C9AB48177092F43AC89E4DFA2C6D62B40B8BD132B1059ECC7232F9A78">>},
3535
{<<"zipper">>, <<"3CCB4F14B97C06B2749B93D8B6C204A1ECB6FAFC6050CACC3B93B9870C05952A">>}]},
3636
{pkg_hash_ext,[
37-
{<<"certifi">>, <<"6AC7EFC1C6F8600B08D625292D4BBF584E14847CE1B6B5C44D983D273E1097EA">>},
37+
{<<"certifi">>, <<"9E37E0542EC3FABAA19A0734B3900DC095797FAC48C40A2A9741D8AD5E3C9BB7">>},
3838
{<<"egithub">>, <<"E009CE11EFD8008D0F9ED59D9C488E3E9ABE302A0F2CD6D663E4CC26756FCC4C">>},
39-
{<<"elvis_core">>, <<"7A8890BF8185A3252CD4EBD826FE5F8AD6B93024EDF88576EB27AE9E5DC19D69">>},
39+
{<<"elvis_core">>, <<"4CF735401E7465C10851C6245C1E3E8E764984D8C0B5949D5697B14B5FAEAD49">>},
4040
{<<"getopt">>, <<"A0029AEA4322FB82A61F6876A6D9C66DC9878B6CB61FAA13DF3187384FD4EA26">>},
4141
{<<"goldrush">>, <<"99CB4128CFFCB3227581E5D4D803D5413FA643F4EB96523F77D9E6937D994CEB">>},
4242
{<<"hackney">>, <<"D2CBA9E3C8103AD0320623E9F1C33E8D378A15EAABE2EE8AE441898F3D35A18C">>},
4343
{<<"idna">>, <<"92376EB7894412ED19AC475E4A86F7B413C1B9FBB5BD16DCCD57934157944CEA">>},
4444
{<<"jsx">>, <<"9A83E3704807298016968DB506F9FAD0F027DE37546EB838B3AE1064C3A0AD62">>},
45-
{<<"katana_code">>, <<"E7E6162A44E826A03F68B503B7D92981B894BF834C1EF0E647783F7D6688021C">>},
45+
{<<"katana_code">>, <<"3E57FED635E0B16A5FBDACCDC872EC53DEB21ED9FC6E7EB9B6415FF199B7B138">>},
4646
{<<"lager">>, <<"3F59BA75A04A99E5F18BF91C89F46DCE536F83C6CB415FE26E6E75A62BEF37DC">>},
4747
{<<"metrics">>, <<"69B09ADDDC4F74A40716AE54D140F93BEB0FB8978D8636EADED0C31B6F099F16">>},
4848
{<<"mimerl">>, <<"F278585650AA581986264638EBF698F8BB19DF297F66AD91B18910DFC6E19323">>},
4949
{<<"parse_trans">>, <<"620A406CE75DADA827B82E453C19CF06776BE266F5A67CFF34E1EF2CBB60E49A">>},
50-
{<<"ssl_verify_fun">>, <<"BDB0D2471F453C88FF3908E7686F86F9BE327D065CC1EC16FA4540197EA04680">>},
50+
{<<"ssl_verify_fun">>, <<"FE4C190E8F37401D30167C8C405EDA19469F34577987C76DDE613E838BBC67F8">>},
5151
{<<"unicode_util_compat">>, <<"25EEE6D67DF61960CF6A794239566599B09E17E668D3700247BC498638152521">>},
5252
{<<"zipper">>, <<"6A1FD3E1F0CC1D1DF5642C9A0CE2178036411B0A5C9642851D1DA276BD737C2D">>}]}
5353
].

src/elvis.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ process_options([{parallel, Num} | Opts], Cmds, Config) ->
142142
process_options([], Cmds, Config) ->
143143
process_commands(Cmds, Config).
144144

145-
-spec process_commands([string()], elvis_config:configs()) ->ok.
145+
-spec process_commands([string()], elvis_config:configs()) -> ok.
146146
process_commands([rock | Files], Config) ->
147147
case Files of
148148
[] ->
@@ -168,7 +168,7 @@ process_commands(['git-branch', Commit | Cmds], Config) ->
168168
process_commands([], _Config) ->
169169
ok;
170170
process_commands([_Cmd | _Cmds], _Config) ->
171-
throw(unrecognized_or_unimplemented_command).
171+
error(unrecognized_or_unimplemented_command).
172172

173173
%%% Options
174174

src/elvis_git.erl

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ install_hook() ->
106106
check_git_dir() ->
107107
case filelib:is_dir(".git") of
108108
true -> ok;
109-
false -> throw("Not a git repository.")
109+
false -> error("Not a git repository.")
110110
end.
111111

112112
%% @doc Adds elvis as a pre commit hook. If a pre-commit file already exists
@@ -123,7 +123,7 @@ add_pre_commit_hook() ->
123123
{ok, Content} = file:read_file(?PRE_COMMIT_FILE),
124124
case binary:match(Content, <<"elvis">>) of
125125
nomatch -> {[append], Command};
126-
_ -> throw("Elvis is already installed as a git hook.")
126+
_ -> error("Elvis is already installed as a git hook.")
127127
end;
128128
false -> {[write], <<Header/binary, Command/binary>>}
129129
end,
@@ -155,7 +155,7 @@ patch_line_type(Line) ->
155155
$+ -> addition;
156156
$- -> deletion;
157157
$\\ -> same;
158-
$ -> same %space
158+
$\s -> same %space
159159
end.
160160

161161
%% @private

src/elvis_webhook.erl

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ handle_pull_request(Cred, Data, GithubFiles) ->
5050
comments => []}}
5151
end.
5252

53-
-spec handle_error( {error, term()}
54-
, egithub_webhook:req_data()
55-
, [egithub_webhook:file()]
56-
) -> {ok, [], []}.
53+
-spec handle_error(
54+
{error, term()}, egithub_webhook:req_data(), [egithub_webhook:file()]) -> {ok, [], []}.
5755
handle_error({error, _}, _, _) -> {ok, [], []}.
5856

5957
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

test/elvis_SUITE.erl

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
end_per_suite
3333
]).
3434

35-
-type config() :: [{atom(), term()}].
35+
-type config() :: proplists:proplist().
36+
-export_type([config/0]).
3637

3738
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3839
%% Common test
@@ -240,7 +241,7 @@ main_default_config(_Config) ->
240241
meck:expect(elvis_utils, erlang_halt, fun(Code) -> Code end),
241242
Src = "../../config/elvis-test.config",
242243
Dest = "./elvis.config",
243-
{ok , _} = file:copy(Src, Dest),
244+
{ok, _} = file:copy(Src, Dest),
244245

245246
Expected = "# ../../src/elvis.erl.*OK",
246247
RockFun = fun() -> elvis:main("rock") end,

test/elvis_meta_SUITE.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
-module(elvis_meta_SUITE).
2-
-author('[email protected]').
32

43
-export([all/0]).
54
-export([dialyzer/1, xref/1, elvis/1]).
65

7-
-type config() :: [{atom(), term()}].
6+
-type config() :: proplists:proplist().
7+
-export_type([config/0]).
88

99
-spec all() -> [dialyzer | xref | elvis].
1010
all() -> [dialyzer, xref, elvis].

test/git_SUITE.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
end_per_suite
2121
]).
2222

23-
-type config() :: [{atom(), term()}].
23+
-type config() :: proplists:proplist().
24+
-export_type([config/0]).
2425

2526
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2627
%% Common test
@@ -129,4 +130,3 @@ maybe_git_config_user() ->
129130
_ = os:cmd("git config user.name 'Your Name'"),
130131
ok
131132
end.
132-

test/xref_SUITE.erl

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-module(xref_SUITE).
22

33
-type config() :: proplists:proplist().
4+
-export_type([config/0]).
45

56
-export(
67
[

0 commit comments

Comments
 (0)