From 1b60ebcea4145ac67b8544f5291a36deaea1ca77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:52:35 +0000 Subject: [PATCH 1/2] Update rubocop requirement from ~> 1.62.0 to ~> 1.63.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.62.0...v1.63.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ae3477c8b..95eb7b497 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ group :development do gem 'rake', '~> 13.0' gem 'rspec', '~> 3.0' gem 'rspec-benchmark', '~> 0.6.0' - gem 'rubocop', '~> 1.62.0' + gem 'rubocop', '~> 1.63.0' gem 'rubocop-performance', '~> 1.21.0' gem 'rubocop-rspec', '~> 2.29.1' gem 'rubocop-rspec_rails', '~> 2.28.2' From 3413579cf0eb133ff5460a16ca8913bdba07907c Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Mon, 8 Apr 2024 22:13:54 +0200 Subject: [PATCH 2/2] Handle Style/MapIntoArray offense --- spec/reek/context/code_context_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/reek/context/code_context_spec.rb b/spec/reek/context/code_context_spec.rb index c4e14cdb7..c3c18a9ee 100644 --- a/spec/reek/context/code_context_spec.rb +++ b/spec/reek/context/code_context_spec.rb @@ -175,12 +175,12 @@ def repeated_greeting let(:first_child) { described_class.new(instance_double(Reek::AST::Node)) } let(:second_child) { described_class.new(instance_double(Reek::AST::Node)) } - it 'yields each child' do + it 'yields each child when given a block' do first_child.register_with_parent context second_child.register_with_parent context result = [] - context.each do |ctx| + context.each do |ctx| # rubocop:disable Style/MapIntoArray result << ctx end