2681Re: [jslint] Re: Can we please lose the trailing whitespace and "this" restriction?
- Nov 16, 2011Removing trailing whitespace IS trivial:
sed -i -e 's/\s*$//' $(find ./ -type f)
Of course if you are using notepad, it might take a few months.
From: paulcrowder1979 <paul@...>
Sent: Wednesday, November 16, 2011 12:44 PM
Subject: [jslint] Re: Can we please lose the trailing whitespace and "this" restriction?
--- In firstname.lastname@example.org, "douglascrockford" <douglas@...> wrote:
> Regrettably, this necessarily causes programs with previously undiscovered faults to, as you would say, berak. When that happens, the best advice is to follow JSLint's advice and fix your code.
> With respect to spaces at the end of lines: From a code hygiene perspective, there is no good argument for keeping them. If you are arguing that there is no one in your organization with the programming skill to remove them, then it seems your organization is suffering from problems that JSLint cannot help you solve. But in any case, the "Tolerate messy white space" option will ignore those spaces. But my advice is to not use that option and write smart looking code instead.
rather than perhaps considering the fact that writing the utility costs time and money; I think that says more about you than it does my organization.
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>