Hacker News new | ask | show | jobs
by gurkendoktor 1614 days ago
Going through the Rubocop configuration ordeal is probably a good investment of time if you have a large codebase where every developer has a different style, and you don't want everyone's code to look completely different.

But most of my Ruby projects are tiny tools with a bus factor of 1. I find "rufo" as a minimal formatter quite nice for those (there are VS Code plugins). For the most part it normalizes '' to "" in code that I might have copied from somewhere else, but doesn't go on to lecture me that "if not" must be written as "unless", and all the other things that the Rails community cares about.

2 comments

Looks like rufo is looking for maintainers: https://github.com/ruby-formatter/rufo/issues/272
Oooh, I'd not heard of that before, it looks more pep8-ey, rather less bossy -- thanks for the hint.