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/ExplicitBlockArgument: do not assume the block parameter name #10064

Merged
merged 1 commit into from Sep 8, 2021

Conversation

casperisfine
Copy link

The autocorector would generate invalid code if the old code already defined the block parameter with any other name than &block.

@dvandersluis
Copy link
Member

Can you please add a changelog entry?

@casperisfine
Copy link
Author

@dvandersluis done!

@dvandersluis
Copy link
Member

dvandersluis commented Sep 8, 2021

Thanks but we actually don't update CHANGELOG.md manually anymore. Please see https://github.com/rubocop/rubocop/blob/master/CONTRIBUTING.md#changelog-entry-format

The autocorector would generate invalid code if the old code
already defined the block parameter with any other name than `&block`.
@casperisfine
Copy link
Author

Done.

@koic koic merged commit b9de8e8 into rubocop:master Sep 8, 2021
@koic
Copy link
Member

koic commented Sep 8, 2021

Thanks!

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

4 participants