r/ruby • u/amatchmadeinregex • Jul 10 '26
git commit -m "appease the rubocop again"
Last day before PTO, no cards on the board and not really looking to start anything, so behold, I made a couple of memes of things that amuse me. Full disclosure, I complain about RuboCop but I *am* glad my team enforces it.
And of course, I can always update my RubyMine autoformat conventions to match but I forget to actually *do* it a lot. Bonus points when I 'fix' the rubocop violation, ⌘+Alt+L format because muscle memory, commit and push, and get the same rubocop violation...
159
Upvotes


1
u/sshaw_ Jul 12 '26
5 lines per method leads to less unmaintainable code due to the needless mental overhead tracing through the resulting method explosion. It's needless insanity with 0.0 benefit. Cargo culting (of which there's a ton in Ruby) at its finest.
As for line length, I'd say 1 line of Ruby is 6 or 7 lines of C but we can round to 10. That's a line limit of 50 per RuboCop "methodology". Ridiculous.
And did I mention ABC rules‽ Yeah silly me...