by adamzapasnik · 6y ago · 0 comments
I don't even think that this is RuboCop's fault but Ruby's. Because you can write said code in a lot of different ways (like shown in the post).
Honestly, the problem is that rubocop was not designed by a community of experts. It started as the opinions of a singular person, one motivated to the point of writing a linter where none existed. As a result, it's heavily opinionated on trivial shit. Yes, you can configure it, but the out-of-box experience is overbearing.
I generally prefer https://relaxed.ruby.style which is ... a lot more chill.
Now if you personally don't like this feature you should probably use a language which feature is that you can write a thing only in one way and no other.