I continue to just not *get* Rubocop, StandardRB, etc.
Rubocop enforces many rules, often badly-considered rules, and adds new rules frequently.
But I get the impression that other people are genuinely bothered by reading code with a variety of quoting styles? Like, there are enough styles out there, and I read enough different code, that to me that's just a sunk cost.
Maybe other people rarely read outside their 'home' codebase?
@codefolio IMHO the value of tools like those is in avoiding fruitless discussions when doing code reviews. I don’t care which rules are applied as long as people don’t waste time debating style.
@grillermo Yeah. I've worked at places with a "no bringing up whitespace, capitalisation or style issues in code reviews" rule. It worked great for me.
Enforced arbitrary rules are sort of like that, but with build failures for whitespace issues.
I liked the way Go made it fully auto-enforceable. I haven't found Ruby tools manage that nearly as consistently.
Which makes sense. Ruby tries to be eloquent and expressive, and those aren't things you can do or preserve with an autoformatter.
@grillermo I see Justin's point, in the sense that if you're going to have one of those you want it to have a limited set of rules, and to use the same set repeatedly.
It just seems like a lot of annoyance to save you from bad quoting or whitespace.