makandra / makandra-rubocop

makandra's default Rubocop configuration
MIT License
6 stars 1 forks source link

Disable Naming/BlockForwarding #37

Closed foobear closed 2 years ago

foobear commented 2 years ago

Ruby 3.1 introduced support for anonymous blocks. Rubocop by default enforces the anonymous style, if possible: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Naming/BlockForwarding

IMO there are valid cases where we want to give meaningful names to block arguments. I'm not against using anonymous blocks per se, so I suggest to disable that cop in our default config.

Vote: :+1: Disable :-1: Keep enabled :confused: Keep enabled, but set EnforcedStyle: explicit

brunosedler commented 2 years ago

Disabled in https://github.com/makandra/makandra-rubocop/commit/1e4f0824607ebf7061fb5d48a5bc734ecc9da984 and released with Version 9.1.0