Hacker News new | ask | show | jobs
by hrdwdmrbl 604 days ago
Why does it matter when there is auto-fix-on-save? I just write whatever, hit ctrl+s and the code is fixed. The result: The code is "fixed" based on whatever rule and it doesn't cost me a thing. I don't think about it and I don't lift a finger.

But I do personally appreciate the tidiness of code-consistency.

1 comments

That's my argument - if we collectively care, it should happen automatically. Alas, no one else seems bothered by the status quo.
Most of these trivial rubocop rules autoformat so it doesn't bother anyone. The ones that don't are usually odd things like code that doesn't run or things with the same name, which can't be safely autofixed.
Some of these rules do support autocorrect