balderdashy/sails — pull request #984 by connermcd (2013-10-14 02:27:56+00:00)
Title: Remove trailing whitespace and mixed tabs/spaces

This isn't a PR so much as an issue, but I thought I'd make the PR just to demonstrate the amount of trailing whitespace and mixed tabs/spaces in the project. Here's the commands that I ran to remove them so that you don't have to accept this PR and take my word that I didn't change anything important.

cd sails/
grep --exclude-dir="node_modules" --exclude-dir=".git" -Irl '\t' | xargs perl -pi -e 's/\t/ /g'
grep --exclude-dir="node_modules" --exclude-dir=".git" -Irl '\s\+$' . | xargs perl -pi -e 's/\s+$/\n/'

I believe there are also tools to correct this sort of thing. I'm not stating a case for tabs or spaces so much as consistency. Formatting consistency makes all things right in the world. Cheers! :+1: