Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style/Lambda-20230502233254 #199

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -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: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
Expand Down Expand Up @@ -59,15 +59,14 @@ 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
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).
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down