File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 ruby-version : 3.3
1818 bundler-cache : true # 'bundle install' and cache
1919 - name : Rubocop
20- run : bundle exec rubocop
20+ run : bundle exec rake rubocop
2121
Original file line number Diff line number Diff line change 11inherit_from : .rubocop-bundler.yml
2- require :
2+ plugins :
33 - rubocop-performance
44AllCops :
55 NewCops : disable
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ platform :ruby do
2424end
2525
2626group :linting do
27- gem "rubocop" , "~> 1.44 "
28- gem "rubocop-performance" , "~> 1.5 "
27+ gem "rubocop" , "~> 1.72 "
28+ gem "rubocop-performance" , "~> 1.24 "
2929end
3030
3131group :test do
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ require "bundler/gem_tasks"
44require "rspec/core/rake_task"
55require "rubocop/rake_task"
66
7- RuboCop ::RakeTask . new
7+ # Workaround: some rubocop versions prioritize ~/.config/rubocop/config.yml
8+ # over the project's .rubocop.yml, so we explicitly specify the config file.
9+ RuboCop ::RakeTask . new do |t |
10+ t . options = %w[ -c .rubocop.yml ]
11+ end
812
913desc "Run specs"
1014RSpec ::Core ::RakeTask . new ( :spec ) do |t |
You can’t perform that action at this time.
0 commit comments