Skip to content

Commit 36ac979

Browse files
committed
RuboCop
1 parent b4c3e1a commit 36ac979

File tree

17 files changed

+29
-26
lines changed

17 files changed

+29
-26
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem "rake-compiler-dock", "~> 1.9"
1515
gem "rubocop", "~> 1.71"
1616

1717
group :development do
18-
gem "sorbet"
1918
gem "rbs-inline", require: false, github: "marcoroth/rbs-inline", branch: "prism"
19+
gem "sorbet"
2020
gem "steep", "~> 1.10"
2121
end

Gemfile.lock

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ GEM
3535
securerandom (>= 0.3)
3636
tzinfo (~> 2.0, >= 2.0.5)
3737
uri (>= 0.13.1)
38-
ast (2.4.2)
38+
ast (2.4.3)
3939
base64 (0.3.0)
4040
benchmark (0.4.1)
4141
bigdecimal (3.2.2)
@@ -56,19 +56,15 @@ GEM
5656
ffi (1.17.2)
5757
ffi (1.17.2-aarch64-linux-gnu)
5858
ffi (1.17.2-aarch64-linux-musl)
59-
ffi (1.17.2-arm-linux-gnu)
60-
ffi (1.17.2-arm-linux-musl)
6159
ffi (1.17.2-arm64-darwin)
62-
ffi (1.17.2-x86-linux-gnu)
63-
ffi (1.17.2-x86-linux-musl)
6460
ffi (1.17.2-x86_64-darwin)
6561
ffi (1.17.2-x86_64-linux-gnu)
6662
ffi (1.17.2-x86_64-linux-musl)
6763
fileutils (1.7.3)
6864
i18n (1.14.7)
6965
concurrent-ruby (~> 1.0)
7066
json (2.12.2)
71-
language_server-protocol (3.17.0.4)
67+
language_server-protocol (3.17.0.5)
7268
lint_roller (1.1.0)
7369
listen (3.9.0)
7470
rb-fsevent (~> 0.10, >= 0.10.3)
@@ -81,8 +77,8 @@ GEM
8177
minitest-difftastic (0.2.1)
8278
difftastic (~> 0.6)
8379
mutex_m (0.3.0)
84-
parallel (1.26.3)
85-
parser (3.3.7.1)
80+
parallel (1.27.0)
81+
parser (3.3.8.0)
8682
ast (~> 2.4.1)
8783
racc
8884
pretty_please (0.2.0)
@@ -99,19 +95,20 @@ GEM
9995
rbs (3.9.4)
10096
logger
10197
regexp_parser (2.10.0)
102-
rubocop (1.73.2)
98+
rubocop (1.76.0)
10399
json (~> 2.3)
104100
language_server-protocol (~> 3.17.0.2)
105101
lint_roller (~> 1.1.0)
106102
parallel (~> 1.10)
107103
parser (>= 3.3.0.2)
108104
rainbow (>= 2.2.2, < 4.0)
109105
regexp_parser (>= 2.9.3, < 3.0)
110-
rubocop-ast (>= 1.38.0, < 2.0)
106+
rubocop-ast (>= 1.45.0, < 2.0)
111107
ruby-progressbar (~> 1.7)
112108
unicode-display_width (>= 2.4.0, < 4.0)
113-
rubocop-ast (1.38.1)
114-
parser (>= 3.3.1.0)
109+
rubocop-ast (1.45.0)
110+
parser (>= 3.3.7.2)
111+
prism (~> 1.4)
115112
ruby-progressbar (1.13.0)
116113
securerandom (0.4.1)
117114
sorbet (0.5.12053)
@@ -149,12 +146,7 @@ GEM
149146
PLATFORMS
150147
aarch64-linux-gnu
151148
aarch64-linux-musl
152-
arm-linux-gnu
153-
arm-linux-musl
154149
arm64-darwin
155-
ruby
156-
x86-linux-gnu
157-
x86-linux-musl
158150
x86_64-darwin
159151
x86_64-linux
160152
x86_64-linux-gnu

Steepfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
target :lib do
24
signature "sig"
35

lib/herb/ast/node.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def inspect_array(array, item_name: "item", prefix: " ")
7272
end
7373

7474
#: (?Integer) -> String
75-
def tree_inspect(indent = 0)
76-
raise NotImplementedError.new
75+
def tree_inspect(_indent = 0)
76+
raise NotImplementedError
7777
end
7878
end
7979
end

lib/herb/cli.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
require "optparse"

lib/herb/libherb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
require "ffi"

lib/herb/libherb/array.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
require "forwardable"

lib/herb/libherb/ast_node.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
module Herb

lib/herb/libherb/buffer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
module Herb

lib/herb/libherb/extract_result.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
# typed: ignore
3+
34
# rbs_inline: disabled
45

56
require "forwardable"

0 commit comments

Comments
 (0)