diff --git a/.rubocop.yml b/.rubocop.yml index ce9829966..27eef1243 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 @@ -386,6 +386,9 @@ Performance/StartWith: Performance/Sum: Enabled: true +Performance/ZipWithoutBlock: + Enabled: true + Rails/ActionControllerFlashBeforeRender: Enabled: true 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)