From 4bbac7658ba9d2921e93e020fb4b4e90ec936dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julia=20Lo=CC=81pez?= Date: Sun, 29 Mar 2026 19:41:58 +0200 Subject: [PATCH] Pin rubocop gems to prevent surprise CI failures Since Gemfile.lock is not tracked, CI resolves the latest rubocop on every run. Pin rubocop and its extensions to pessimistic patch versions so new cops do not cause surprise failures. Update rubocop_todo for the three new cops introduced in 1.86.0. Co-Authored-By: Claude Opus 4.6 (1M context) --- .rubocop_todo.yml | 14 +++++++++++++- Gemfile | 8 ++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index bd6fee5e59..10ee6f883e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.81.7. +# using RuboCop version 1.86.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -38,6 +38,18 @@ RSpec/ExampleLength: RSpec/NestedGroups: Max: 5 +Style/EmptyClassDefinition: + Exclude: + - 'spec/money_spec.rb' + +Style/OneClassPerFile: + Exclude: + - 'spec/support/silence_warnings.rb' + +Style/SelectByKind: + Exclude: + - 'spec/support/shared_examples/money_examples.rb' + Style/ClassVars: Exclude: - 'lib/money/currency.rb' diff --git a/Gemfile b/Gemfile index 5ecf555c7f..df7a3df53c 100644 --- a/Gemfile +++ b/Gemfile @@ -19,10 +19,10 @@ gem "simplecov", require: false gem "rake" # Linting -gem "rubocop", require: false -gem "rubocop-performance", require: false -gem "rubocop-rake", require: false -gem "rubocop-rspec", require: false +gem "rubocop", "~> 1.86.0", require: false +gem "rubocop-performance", "~> 1.26.0", require: false +gem "rubocop-rake", "~> 0.7.0", require: false +gem "rubocop-rspec", "~> 3.8.0", require: false # Documentation gem "yard", "~> 0.9.38"