2668Re: Can we please lose the trailing whitespace and "this" restriction?
- Nov 14, 2011
>Someone else already suggested running a beautifier on the code. Here are
> - Trailing whitespace and whitespace on blank lines is not allowed. Again,
> daily by developers using an editor that doesn't strip trailing whitespace
> by default.
three more solutions:
1. Have the unit tests run an EOL whitespace check.
2. Have a pre-commit hook in your version control system that checks for
EOL whitespace and abandons the commit if it finds any.
With those two approaches, developers will either learn to configure their
text editors, or put up with the annoyance of fixing the files manually
whenever they cause an error. If that's not acceptable for some reason,
In fact, you could use jslint itself as a pre-commit hook, could you not?
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>