From 42378285acc095cde080e6e9aaf1097d23e475c1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 10:57:42 +0000 Subject: [PATCH 1/2] Bump rubocop-performance from 1.23.1 to 1.26.0 We're changing the `.rubocop.yml` file because we were getting a warning: ``` rubocop-performance extension supports plugin, specify `plugins: rubocop-performance` instead of `require: rubocop-performance` in .rubocop.yml. For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html ``` Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.23.1 to 1.26.0. - [Release notes](https://github.com/rubocop/rubocop-performance/releases) - [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.23.1...v1.26.0) --- updated-dependencies: - dependency-name: rubocop-performance dependency-version: 1.26.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .rubocop.yml | 2 +- Gemfile | 2 +- Gemfile.lock | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ce9829966..6915f328c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,9 +1,9 @@ plugins: - rubocop-capybara - rubocop-factory_bot + - rubocop-performance - rubocop-rspec require: - - rubocop-performance - rubocop-rails - rubocop-rspec_rails diff --git a/Gemfile b/Gemfile index a2b8154ac..86f3e797c 100644 --- a/Gemfile +++ b/Gemfile @@ -106,7 +106,7 @@ group :development do gem "rubocop", "~> 1.76.1", require: false gem "rubocop-capybara", "~> 2.22.1", require: false gem "rubocop-factory_bot", "~> 2.27.1", require: false - gem "rubocop-performance", "~> 1.23.1", require: false + gem "rubocop-performance", "~> 1.26.1", require: false gem "rubocop-rails", "~> 2.29.1", require: false gem "rubocop-rspec", "~> 3.7.0", require: false gem "rubocop-rspec_rails", "~> 2.30.0", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 9e1c8ddb9..cb7f912fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -645,9 +645,10 @@ GEM rubocop-factory_bot (2.27.1) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) - rubocop-performance (1.23.1) - rubocop (>= 1.48.1, < 2.0) - rubocop-ast (>= 1.31.1, < 2.0) + rubocop-performance (1.26.1) + lint_roller (~> 1.1) + rubocop (>= 1.75.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) rubocop-rails (2.29.1) activesupport (>= 4.2.0) rack (>= 1.1) @@ -889,7 +890,7 @@ DEPENDENCIES rubocop (~> 1.76.1) rubocop-capybara (~> 2.22.1) rubocop-factory_bot (~> 2.27.1) - rubocop-performance (~> 1.23.1) + rubocop-performance (~> 1.26.1) rubocop-rails (~> 2.29.1) rubocop-rspec (~> 3.7.0) rubocop-rspec_rails (~> 2.30.0) From a3c25b5a2b2faffdceedc7b724dc4d2c14578e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 31 Oct 2025 12:29:03 +0100 Subject: [PATCH 2/2] Add Performance/ZipWithoutBlock rubocop rule This rule was added in rubocop-performance 1.24. We currently don't have code where it'd be relevant, but it's a nice rule to have if we ever write `something.map { |element| [element] }`. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 6915f328c..27eef1243 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -386,6 +386,9 @@ Performance/StartWith: Performance/Sum: Enabled: true +Performance/ZipWithoutBlock: + Enabled: true + Rails/ActionControllerFlashBeforeRender: Enabled: true