Skip to content

Commit 40ec06a

Browse files
committed
Updates rubocop to 1.75.2
1 parent 9d22e62 commit 40ec06a

File tree

7 files changed

+32
-11
lines changed

7 files changed

+32
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 1.47.0
44

5+
* Updates rubocop to [1.75.2](https://github.com/rubocop/rubocop/tree/v1.75.2)
6+
7+
## 1.47.0
8+
59
* Updates standard performance to 1.7.0
610

711
## 1.46.0

Gemfile.lock

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PATH
44
standard (1.47.0)
55
language_server-protocol (~> 3.17.0.2)
66
lint_roller (~> 1.0)
7-
rubocop (~> 1.73.0)
7+
rubocop (~> 1.75.2)
88
standard-custom (~> 1.0.0)
99
standard-performance (~> 1.7)
1010

@@ -24,36 +24,37 @@ GEM
2424
minitest (5.25.1)
2525
mutex_m (0.2.0)
2626
parallel (1.23.0)
27-
parser (3.3.6.0)
27+
parser (3.3.7.4)
2828
ast (~> 2.4.1)
2929
racc
30-
prism (0.30.0)
30+
prism (1.4.0)
3131
racc (1.7.1)
3232
rainbow (3.1.1)
3333
rake (13.0.6)
3434
rbs (3.5.2)
3535
logger
3636
regexp_parser (2.9.3)
37-
rubocop (1.73.2)
37+
rubocop (1.75.2)
3838
json (~> 2.3)
3939
language_server-protocol (~> 3.17.0.2)
4040
lint_roller (~> 1.1.0)
4141
parallel (~> 1.10)
4242
parser (>= 3.3.0.2)
4343
rainbow (>= 2.2.2, < 4.0)
4444
regexp_parser (>= 2.9.3, < 3.0)
45-
rubocop-ast (>= 1.38.0, < 2.0)
45+
rubocop-ast (>= 1.44.0, < 2.0)
4646
ruby-progressbar (~> 1.7)
4747
unicode-display_width (>= 2.4.0, < 4.0)
48-
rubocop-ast (1.38.1)
49-
parser (>= 3.3.1.0)
48+
rubocop-ast (1.44.0)
49+
parser (>= 3.3.7.2)
50+
prism (~> 1.4)
5051
rubocop-performance (1.24.0)
5152
lint_roller (~> 1.1)
5253
rubocop (>= 1.72.1, < 2.0)
5354
rubocop-ast (>= 1.38.0, < 2.0)
54-
ruby-lsp (0.17.7)
55+
ruby-lsp (0.23.13)
5556
language_server-protocol (~> 3.17.0)
56-
prism (>= 0.29.0, < 0.31)
57+
prism (>= 1.2, < 2.0)
5758
rbs (>= 3, < 4)
5859
sorbet-runtime (>= 0.5.10782)
5960
ruby-progressbar (1.13.0)

config/base.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,9 @@ Style/CommentAnnotation:
11241124
Style/CommentedKeyword:
11251125
Enabled: false
11261126

1127+
Style/ComparableBetween:
1128+
Enabled: true
1129+
11271130
Style/ComparableClamp:
11281131
Enabled: true
11291132

@@ -1293,6 +1296,9 @@ Style/HashEachMethods:
12931296
Style/HashExcept:
12941297
Enabled: true
12951298

1299+
Style/HashFetchChain:
1300+
Enabled: false
1301+
12961302
Style/HashLikeCase:
12971303
Enabled: false
12981304

@@ -1352,6 +1358,10 @@ Style/IpAddresses:
13521358
Style/ItAssignment:
13531359
Enabled: true
13541360

1361+
Style/ItBlockParameter:
1362+
Enabled: true
1363+
EnforcedStyle: only_numbered_parameters
1364+
13551365
Style/KeywordArgumentsMerging:
13561366
Enabled: false
13571367

config/ruby-2.2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ AllCops:
66
# The below cops are for features not available until Ruby 2.3 but,
77
# as of this writing, the cops don't correctly use the TargetRubyVersion.
88

9+
Style/HashFetchChain:
10+
Enabled: false
11+
912
Layout/HeredocIndentation:
1013
Enabled: false
1114

config/ruby-3.3.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ inherit_from: ./base.yml
22

33
AllCops:
44
TargetRubyVersion: 3.3
5+
6+
Style/ItBlockParameter:
7+
Enabled: false

standard.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.require_paths = ["lib"]
2222
spec.metadata["rubygems_mfa_required"] = "true"
2323

24-
spec.add_dependency "rubocop", "~> 1.73.0"
24+
spec.add_dependency "rubocop", "~> 1.75.2"
2525

2626
spec.add_dependency "lint_roller", "~> 1.0"
2727
spec.add_dependency "standard-custom", "~> 1.0.0"

test/ruby_lsp_addon_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def with_server(source = nil, path = "fake.rb", pwd: "test/fixture/ruby_lsp", st
9999
end
100100

101101
server.global_state.index.index_single(
102-
RubyIndexer::IndexablePath.new(nil, uri.to_standardized_path),
102+
URI::Generic.from_path(path: uri.to_standardized_path),
103103
source
104104
)
105105
server.load_addons if load_addons

0 commit comments

Comments
 (0)