From 21907177b846d1d5b841be5c705a7141f23f0204 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 2 May 2023 23:33:06 +0000 Subject: [PATCH 1/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2d540c9..683cfe3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-04-20 23:33:11 UTC using RuboCop version 1.50.2. +# on 2023-05-02 23:33:06 UTC using RuboCop version 1.50.2. # 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 From ef8469657775e3f361e5d539e7ec87ec34fcb70a Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 2 May 2023 23:33:12 +0000 Subject: [PATCH 2/3] :police_car: Style/Lambda --- .rubocop_todo.yml | 7 ------- spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 683cfe3..d54b5ea 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -442,13 +442,6 @@ Style/HashSyntax: - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb' - 'spec/lib/dispatch-rider/registrars/publishing_destination_spec.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: line_count_dependent, lambda, literal -Style/Lambda: - Exclude: - - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). diff --git a/spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb b/spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb index 01c2f7b..a5cc690 100644 --- a/spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb +++ b/spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb @@ -28,7 +28,7 @@ context 'when additional_info_injector is customized' do let(:additional_info_injector) do - -> (message) do + lambda do |message| message[:employee_id] = 47 message[:account_id] = 42 message From cc6eaf2a700f81bd2c8cdb24eed14e7b92d82ba4 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Tue, 2 May 2023 23:33:20 +0000 Subject: [PATCH 3/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d54b5ea..4dee6bb 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-05-02 23:33:06 UTC using RuboCop version 1.50.2. +# on 2023-05-02 23:33:20 UTC using RuboCop version 1.50.2. # 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 @@ -59,7 +59,7 @@ Layout/SpaceAroundOperators: Exclude: - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb' -# Offense count: 4 +# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: require_no_space, require_space @@ -67,7 +67,6 @@ Layout/SpaceInLambdaLiteral: Exclude: - 'lib/dispatch-rider/configuration.rb' - 'lib/dispatch-rider/scheduled_job.rb' - - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). @@ -442,7 +441,6 @@ Style/HashSyntax: - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb' - 'spec/lib/dispatch-rider/registrars/publishing_destination_spec.rb' - # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowedMethods.