mozilla/browserid — Issue #673: Adopt a "no trailing whitespace" policy?
Author: jrburke
Created: 2011-12-01 06:10:11+00:00
State: open

This is partly a style thing, so it is understandable if you want to just close it out:

It would be useful if the project adopted a policy of not committing files with trailing white space. If someone is working on just one project, it probably is not an issue, but for some of us open source hackers, other projects have a "no trailing whitespace" policy, and to conform have set up environment tools to avoid it, and the end result is that tooling may be applied to browserid code.

I ran into this recently since my editor automatically trims trailing whitespace on file save, so the code diff was bigger than it needed to be. If the files were already white-space trimmed then this would not have been an issue.

Here are some resources to configure this:

* [in git](http://stackoverflow.com/questions/591923/make-git-automatically-remove-trailing-whitespace-before-committing)
* [in vim](http://vim.wikia.com/wiki/Remove_unwanted_spaces) see near bottom for autoconfig
* if using Komodo/Komodo Edit, go to Preferences, Editor, Save Options and check "Clean trailing whitespace and EOL markers".

If you need me to research info for a particular dev setup, please let me know.