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

chore: Update rubocop version to 1.60.0 #818

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Jan 16, 2024

Consolidate the dependabot changes to update rubocop to 1.160.0 into one PR.

This version introduces Style/ArgumentsForwarding, which attempts to replace calls to &block, *args, etc. with ...

Incorporate Style/ArgumentsForwarding - Use shorthand syntax ... for arguments forwarding.
Comment on lines -15 to +19
def self.with_send_span(channel, tracer, exchange, routing_key, &block)
def self.with_send_span(channel, tracer, exchange, routing_key, &block) # rubocop:disable Style/ArgumentsForwarding
attributes = basic_attributes(channel, channel.connection, exchange, routing_key)
destination = destination_name(exchange, routing_key)

tracer.in_span("#{destination} publish", attributes: attributes, kind: :producer, &block)
tracer.in_span("#{destination} publish", attributes: attributes, kind: :producer, &block) # rubocop:disable Style/ArgumentsForwarding
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the tracer.in_span call has arguments that aren't forwarded, we can't replace &block with ... in the method definition args nor the tracer.in_span args. Same is true for example below.

@arielvalentin arielvalentin merged commit 8916598 into open-telemetry:main Jan 16, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants