Git CleanWashington, DC, USA, Northern VA

  • 158 Commits
  • 138 Pushes
  • 160 Deploys
Launch Site

Git Clean

By Git Clean

Screencast
Quick Intro

Clean your whole repo and all the code that's in it with a simple click of a button.

Description

Git Clean automates code clean up across your Github repos. With a simple click of a button, enforce a set of code standards across a whole repo. No longer is hard to read code a reason to not contribute to a project, with Git Clean it is as easy as fork, clean, submit.

Judging Instructions

Visit the site and login with Github. Pick a repo that contains dirty Javascript and submit a clean request. You will be brought to a status page. Refresh until you see "Success" (or failed...) and click the link to view the pull request on your repo.

What they Used

express ejs passport-github passport node-uuid js-beautify mime winston github-api level

Who

Votes

Your Vote

Voting is now closed.

Other Votes

  • (10)
  • contestant

    USP

    Nice idea, I'd really use that on my next fork :-)

  • judge

    Definitely a very useful app. Great job!

  • judge

    Mozilla

  • judge

    Adobe

    I like that it helps to do some automated cleaning. But auto-cleaning are the bane of large repos, in my view. Scarred from zillion 'cleaning up newlines' pull requests that arose in HTML5 Boilerplate repo.

    • mcwhittemore
      contestant

      Ah. Yes. One of our goals (down the road) is to have Git Clean add a clean.conf file to your repo which will force the process to use your rules because a formatting war is not what we want.

  • judge

    Joyent

    Great idea; as per the video, it can be a barrier to entry to keep adjusting to different styles. The process worked. Some minor bugs in website layout (firefox), and what actually got applied (no newlines on end), but these are minor compared to the entire process which worked well.

    • mcwhittemore
      contestant

      No new lines on the end? I'll have to go test that and see whats up with js-beautify. Thanks for voting.

  • judge

    Groupon

    This is very well done for a hackathon project! I much prefer using a local command-line tool for this kind of task, though.

    • mcwhittemore
      contestant

      Yea. I use git-hooks to do my own beautification, long term I think features like translation (moving jade to ejs, coffeescript to javascript) and maintainability monitoring will be better fits for an online service as they aren't run with every commit.

      Thanks for the vote!

  • contestant

    Let's Beautified !!!

  • contestant

    Printly.pk

    Didn't have much of the repos to give cleaning a try. Great work otherwise.

  • contestant

    I love the idea. It will be really useful.

    • mcwhittemore
      contestant

      Have you tried cleaning up one of your repos? I haven't seen a project from your user come through.

  • contestant

    I gotta be honest. I didn't test your site. It's a neat idea, but I don't want anything automatic touching my git repos like that. :( Kinda a control freak like that. Good idea, but this voter (sadly) won't be testing. Maybe provide a demo repo that people can fork to test with?

    • mcwhittemore
      contestant

      Man, I need to make this clearer on the site.

      We don't touch your repo, we fork it. So go ahead and test it! When you do a pull request will be issued from our fork to your project. If you don't like the changes, reject it.

      Here is an example if you want to confirm what I've said above: https://github.com/NHQ/oscillators/pull/1

  • contestant

    I really need this. Thanks!

    (But it didn't run the tests...)

    • mcwhittemore
      contestant

      We talked about it, but recreating travis seemed a bit out of scope and I figured js-beautify wouldn't break things. What changed that broke your tests?

    • NHQ
      contestant

      none, i was only make jokes!

    • mcwhittemore
      contestant

      :)

  • judge

    Cool idea and definitely useful - did a clean against one of my own small projects and it did an ok job - didn't handle commented lines correctly but seemed to a do a good job on the rest. Wasn't sure what the effect of expanding/collapsing brackets was going to be when I had that option.

    • mcwhittemore
      contestant

      I haven't looked into the comment beautification much. Sadly I spent most of the time working on the github/git process and didn't look over what js-beautify (the lib were using) does its "magic".

  • judge

    Scoutzie

    it worked!!!

  • judge

    Wow, I really live your product and the idea. The design could do a little work but overall, I think you did an awesome job. The idea of creating code standards across your github repositories is something that is certainly high in utility and some that make the web a better place. Well done.

    • mcwhittemore
      contestant

      Linus Torvalds as Mr. Clean didn't make up for the over use of bootstrap?

      git clean logo

    • Jawerty
      judge

      That did git me a bit of a chuckle, didn't know Linus lifts.

    • mcwhittemore
      contestant

      He does. He is also really into tanning. Got sick of being called a pale programming nerd.

  • contestant

    MeteorHacks

    I really love to use this, and the same time I'm quite afraid since you guys are writing into my repo. But after I realised it sends a pull request, I'm quite okay with it.

    Frankly, I didn't use it yet. I'll definitely do it after the nko, if you guys are continue to work on this.

    • mcwhittemore
      contestant

      I think we will. What other features would you like to see?

    • arunoda
      contestant

      Do you guys do it for each commit?

    • mcwhittemore
      contestant

      Like via webhooks? When you push a commit, we check that all the code is clean? This would be possible. We'd probs want to do it once a day or something so there aren't 1000s of pull requests on your project.

  • contestant

    IOKI

    I can definitely say that this is an innovative project, but still I was afraid to use it :) Maybe showing off some inner-workings would convince me that this is a good idea but I don't trust a robot to swipe my whole git-repository.

    • mcwhittemore
      contestant

      We fork the repo to our own org and than issue a "clean" request against yours so if anything goes wrong on our side it doesn't affect you and if you don't like the changes, ignoring them is as simple as denying the request.

      Here is an example "clean" request. https://github.com/NHQ/oscillators/pull/1

IMPORTANT DATES

REGISTRATION
SEP 17
COMPETITION
NOV 9-11 UTC
JUDGING
NOV 11-17
WINNERS
NOV 18

Thank you to our Platinum Sponsors