Hacker News new | ask | show | jobs
by untog 3944 days ago
I think we're long overdue a tool like this (maybe it already exists?) that will reformat code. I have been so bored beyond tedium about endless debates over tabs or spaces, 2 spaces or 4 spaces, semi-colons or no semi-colons, etc. etc. ad nauseum.

Let users check out a repo formatted using whatever indentation they like, then commit back in a standardised format. Then we can all stop talking about this utter nonsense and do some real work.

1 comments

Thoughtbot offer a tool called HoundCI that does this for JS, ruby, coffeescript and SASS (SCSS). They charge $12/month for private repos and it's free for open source.

It's designed to check your github pull requests. Haven't used it but looks pretty nice. They provide style guides for each language that your free to customize.

https://houndci.com