Skip to content

Commit

Permalink
Enable Style/ExplicitBlockArgument cop
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
byroot committed Sep 6, 2021
1 parent 3db8341 commit ef0a36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ Style/ExpandPathArguments:
Enabled: false

Style/ExplicitBlockArgument:
Enabled: false
Enabled: true

Style/ExponentialNotation:
Enabled: false
Expand Down

0 comments on commit ef0a36f

Please sign in to comment.