Skip to content

Commit c269b5f

Browse files
committed
Update RuboCop toolchain for Ruby 3.4 support
Add racc gem required by RuboCop parser in Ruby 3.4+, and update RuboCop to version 1.60+ which recognizes Ruby 3.4 as a supported version. Key changes: - Add racc gem (required by parser gem in Ruby 3.4+) - Update rubocop from 1.28.2 to 1.81.7 (adds Ruby 3.4 support) - Update rubocop-rspec from 2.10.0 to 3.8.0 - Modernize .rubocop.yml configuration: - Change 'require' to 'plugins' (new preferred syntax) - Replace deprecated RSpec/FilePath with RSpec/SpecFilePathFormat and RSpec/SpecFilePathSuffix - Update RSpec/VerifiedDoubleReference config (obsolete EnforcedStyle) This allows the buildpack's code quality tools to work with Ruby 3.4.7.
1 parent 6bbee1c commit c269b5f

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
require:
2+
plugins:
33
- rubocop-rspec
44

55
AllCops:
@@ -67,7 +67,7 @@ Lint/EmptyBlock:
6767
RSpec/MultipleMemoizedHelpers:
6868
Max: 10
6969
RSpec/VerifiedDoubleReference:
70-
EnforcedStyle: string
70+
Enabled: false
7171
Style/OptionalBooleanParameter:
7272
Enabled: false
7373
Lint/RedundantCopDisableDirective:

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ source 'https://rubygems.org'
66
gem 'base64'
77
gem 'bigdecimal'
88
gem 'digest'
9+
gem 'racc'
910
gem 'set'
1011
gem 'tmpdir'
1112

1213
group :development do
1314
gem 'rake'
1415
gem 'redcarpet'
1516
gem 'rspec'
16-
gem 'rubocop'
17+
gem 'rubocop', '~> 1.60'
1718
gem 'rubocop-rspec'
1819
gem 'rubyzip'
1920
gem 'tee'

Gemfile.lock

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GEM
33
specs:
44
addressable (2.8.0)
55
public_suffix (>= 2.0.2, < 5.0)
6-
ast (2.4.2)
6+
ast (2.4.3)
77
base64 (0.3.0)
88
bigdecimal (3.3.1)
99
crack (0.4.5)
@@ -12,15 +12,21 @@ GEM
1212
digest (3.2.1)
1313
fileutils (1.8.0)
1414
hashdiff (1.0.1)
15-
parallel (1.22.1)
16-
parser (3.1.2.0)
15+
json (2.16.0)
16+
language_server-protocol (3.17.0.5)
17+
lint_roller (1.1.0)
18+
parallel (1.27.0)
19+
parser (3.3.10.0)
1720
ast (~> 2.4.1)
21+
racc
22+
prism (1.6.0)
1823
public_suffix (4.0.7)
24+
racc (1.8.1)
1925
rainbow (3.1.1)
2026
rake (13.0.6)
2127
redcarpet (3.5.1)
22-
regexp_parser (2.3.1)
23-
rexml (3.2.5)
28+
regexp_parser (2.11.3)
29+
rexml (3.4.4)
2430
rspec (3.11.0)
2531
rspec-core (~> 3.11.0)
2632
rspec-expectations (~> 3.11.0)
@@ -34,28 +40,32 @@ GEM
3440
diff-lcs (>= 1.2.0, < 2.0)
3541
rspec-support (~> 3.11.0)
3642
rspec-support (3.11.0)
37-
rubocop (1.28.2)
43+
rubocop (1.81.7)
44+
json (~> 2.3)
45+
language_server-protocol (~> 3.17.0.2)
46+
lint_roller (~> 1.1.0)
3847
parallel (~> 1.10)
39-
parser (>= 3.1.0.0)
48+
parser (>= 3.3.0.2)
4049
rainbow (>= 2.2.2, < 4.0)
41-
regexp_parser (>= 1.8, < 3.0)
42-
rexml
43-
rubocop-ast (>= 1.17.0, < 2.0)
50+
regexp_parser (>= 2.9.3, < 3.0)
51+
rubocop-ast (>= 1.47.1, < 2.0)
4452
ruby-progressbar (~> 1.7)
45-
unicode-display_width (>= 1.4.0, < 3.0)
46-
rubocop-ast (1.17.0)
47-
parser (>= 3.1.1.0)
48-
rubocop-rspec (2.10.0)
49-
rubocop (~> 1.19)
50-
ruby-progressbar (1.11.0)
53+
unicode-display_width (>= 2.4.0, < 4.0)
54+
rubocop-ast (1.48.0)
55+
parser (>= 3.3.7.2)
56+
prism (~> 1.4)
57+
rubocop-rspec (3.8.0)
58+
lint_roller (~> 1.1)
59+
rubocop (~> 1.81)
60+
ruby-progressbar (1.13.0)
5161
rubyzip (2.3.2)
5262
set (1.1.2)
5363
tee (1.0.0)
5464
terminal-table (3.0.2)
5565
unicode-display_width (>= 1.1.1, < 3)
5666
tmpdir (0.3.1)
5767
fileutils
58-
unicode-display_width (2.1.0)
68+
unicode-display_width (2.6.0)
5969
webmock (3.14.0)
6070
addressable (>= 2.8.0)
6171
crack (>= 0.3.2)
@@ -71,10 +81,11 @@ DEPENDENCIES
7181
base64
7282
bigdecimal
7383
digest
84+
racc
7485
rake
7586
redcarpet
7687
rspec
77-
rubocop
88+
rubocop (~> 1.60)
7889
rubocop-rspec
7990
rubyzip
8091
set

0 commit comments

Comments
 (0)