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

Enable Style/ExplicitBlockArgument cop #314

Merged
merged 1 commit into from Sep 7, 2021
Merged

Conversation

casperisfine
Copy link
Contributor

The code is disabled by default because in some cases it could change the block arity which might fail if the block is
actually a lambda.

However I enabled it on Rails and shopify-core and it went just fine.

Since this cop is beneficial for production performance and for trimming CI backtraces a bit, I think we should enable it.

The code is disabled by default because in some cases
it could change the block arity which might fail if the block is
actualy a lambda.

However I enabled it on Rails and shopify-core and it went just fine.

Since this cop is beneficial for production performance and
for triming CI backtraces a bit, I think we should enable it.
Copy link
Member

@rafaelfranca rafaelfranca left a comment

Choose a reason for hiding this comment

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

Sorbet is another reason to have the explicit block argument. Without it, we can write the method signatures.

@casperisfine casperisfine merged commit 8ec06a4 into main Sep 7, 2021
@casperisfine casperisfine deleted the explicit-block-argument branch September 7, 2021 15:32
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems October 5, 2021 18:38 Inactive
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