bitpay/copay — pull request #675 by maraoz (2014-06-13 14:54:12+00:00)
Title: fix formatting according to discussion on mails

Javascript Formatting References:
http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Code_formatting

which refers to: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Formatting

js-beautify seems to follow those rules strictly, with the default config (at least at first glance). Below there is a mini tutorial about how to set it on VIM. I suggest we all install js-beautify and run it before sending PRs. I am aware that I am probably the one that codes more distant to the established rules, so I will be sure to check that in the future.

Eventually, we can add a pre-commit hook that checks modified Javascript files against js-beautify.