Skip to content

Commit 8311853

Browse files
Support OTP 28 (#466)
* Support OTP 28 * rebar3 upgrade it! * Simplify it * rebar3 upgrade it!
1 parent 0b6781f commit 8311853

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ${{matrix.os}}
1515
strategy:
1616
matrix:
17-
otp_vsn: ['25', '26', '27']
18-
rebar3_vsn: ['3.24']
17+
otp_vsn: ['26', '27', '28']
18+
rebar3_vsn: ['3.25']
1919
os: [ubuntu-24.04, windows-2022]
2020
steps:
2121
- uses: actions/checkout@v4

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
debug_info
1010
]}.
1111

12-
{minimum_otp_vsn, "25"}.
12+
{minimum_otp_vsn, "26"}.
1313

1414
{profiles, [
1515
{test, [
@@ -29,7 +29,7 @@
2929

3030
%% == Dependencies and plugins ==
3131

32-
{deps, [{zipper, "1.1.0"}, {katana_code, "~> 2.3.1"}]}.
32+
{deps, [{zipper, "1.1.0"}, {katana_code, "~> 2.4.0"}]}.
3333

3434
{project_plugins, [
3535
{rebar3_hank, "~> 1.4.0"},

rebar.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{"1.2.0",
2-
[{<<"katana_code">>,{pkg,<<"katana_code">>,<<"2.3.1">>},0},
2+
[{<<"katana_code">>,{pkg,<<"katana_code">>,<<"2.4.1">>},0},
33
{<<"zipper">>,{pkg,<<"zipper">>,<<"1.1.0">>},0}]}.
44
[
55
{pkg_hash,[
6-
{<<"katana_code">>, <<"0428F86785C2E0FE33025BA82C2A1742413E3491CA4BE1A8350461D9AAFBBCC7">>},
6+
{<<"katana_code">>, <<"4C116DC6CF6E5ABCFBB95BD904EBEED36D79463D1EED349CF47A828F4723BAC4">>},
77
{<<"zipper">>, <<"FA775C01BCD33225BE89AF320C10CE61D23943109F4D5CA718551D0C492D7E35">>}]},
88
{pkg_hash_ext,[
9-
{<<"katana_code">>, <<"4F825ABC63B991D989A0CC882F15DB691B7578FAD1538E0AB1A3CAB7A9805313">>},
9+
{<<"katana_code">>, <<"58EFC63B5D9DABC82230CAB50CDE7F7B259287A690ED699F79A7FA80F49B0B3A">>},
1010
{<<"zipper">>, <<"4644C83AE83EF3C09860CB5ED597B0C759FBBCD64AD5B00A62F51AE48AEF7535">>}]}
1111
].

src/elvis_file.erl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ module(#{path := Path}) ->
146146

147147
-spec resolve_parse_tree(string(), string() | binary(), module(), list()) ->
148148
undefined | ktn_code:tree_node().
149-
resolve_parse_tree(".erl", Content, Mod, Ignore) ->
150-
Tree = ktn_code:parse_tree(Content),
151-
filter_tree_for(Tree, Mod, Ignore);
152-
resolve_parse_tree(".hrl", Content, Mod, Ignore) ->
149+
resolve_parse_tree(Ext, Content, Mod, Ignore) when Ext =:= ".erl"; Ext =:= ".hrl" ->
153150
Tree = ktn_code:parse_tree(Content),
154151
filter_tree_for(Tree, Mod, Ignore);
155152
resolve_parse_tree(_, _, _, _) ->

0 commit comments

Comments
 (0)