diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2d540c9..7702513 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-10 23:33:18 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,14 +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: 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). # Configuration parameters: AllowedMethods. 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