I am no longer able to upgrade to JSLint to pick up bug fixes and new features because of these two rules: - "this" can't be used in named functions. I...
2661
Tom Worster
thefsb
Oct 27, 2011 9:20 pm
... i want jslint to tell be about these in my code. ... i don't mind either way as it's easy to address in the build system. i don't entirely understand why...
2662
paulcrowder1979
Oct 28, 2011 3:08 pm
... Who's running JSLint on third-party code?...
2663
sandyhead25
Oct 28, 2011 4:15 pm
... Strict mode is the future of the language. The language is dead set on a course for increased readability and more terse syntax. ... Events are treated as...
2664
Erik Eckhardt
vorpalmage
Oct 28, 2011 4:16 pm
1. It's nice that *you* want jslint to tell you about these in your code. Someone else doesn't want it. You sound like my 5-year-old son who always has to...
2665
John Hawkinson
john.hawkinson
Oct 28, 2011 4:29 pm
... Only that it is cumbersome, expensive, and inefficient to do so. Forks are not free. They add huge maintenance hassles. They also are rude to the...
2666
Chris
altearius
Nov 3, 2011 6:44 pm
I recent debugged some code that followed this pattern: var a, b, c; a === b = c; When executed, this results in a syntax error, due to invalid left-hand side...
2667
Douglas Crockford
douglascrock...
Nov 3, 2011 7:11 pm
... Thanks. Please try it now....
2668
mathew
metavariable
Nov 14, 2011 7:23 pm
... Someone else already suggested running a beautifier on the code. Here are three more solutions: 1. Have the unit tests run an EOL whitespace check. 2. Have...
2669
John Hawkinson
john.hawkinson
Nov 14, 2011 7:25 pm
... ... These solutions may be reasonable if you are just starting out. They are not reasonable if you have a large installed codebase. Guess which position...
2670
mathew
metavariable
Nov 14, 2011 7:32 pm
... So don't run JSLint on your entire codebase. Either you need to fix the problems in the code that cause JSLint failures, or you need to not run JSLint on...
2671
Erik Eckhardt
vorpalmage
Nov 14, 2011 8:13 pm
Matthew, By saying "fix the code" you are saying the code is broken. Except, trailing white space is *not* broken code in the minds of many users, as evidenced...
2672
douglascrockford
douglascrock...
Nov 14, 2011 8:37 pm
... JSLint was written for me. JavaScript is a language full of traps and sharp edges. I do not dare write in JavaScript without JSLint's assistance. I have...
2676
Pierre Martineau
pierremartineau
Nov 16, 2011 4:04 am
(I apologize for the multiple posts - I did not know I could send good old plain text) Are JSLint indentation rules documented anywhere? (in particular rules...
2677
Pierre Martineau
pierremartineau
Nov 16, 2011 4:29 am
The formatted tests can be found at the following link: http://pastebin.com/NAsaH1V7...
2678
Erik Eckhardt
vorpalmage
Nov 16, 2011 6:03 am
Unfortunately, due to the limitations of HTML and this email list, your indents have been lost and we don't know what you're pointing out. Try replacing the...
2679
Doc Emmett Splendid
emmett.thesane
Nov 16, 2011 6:29 am
I just use pastie or similar, even within the same company: http://pastie.org/ (and now... I'm hungry for a pastie) ________________________________ From: Erik...
2680
paulcrowder1979
Nov 16, 2011 8:45 pm
... I agree with some of your points. JSLint is a valuable tool, and I do not write JavaScript without it. I also see the value in adding new rules as new...
2681
Michael Mikowski
z_mikowski
Nov 16, 2011 9:27 pm
Removing 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. ...
2682
Michael Mikowski
z_mikowski
Nov 16, 2011 9:33 pm
You want to do this independent of all other code work. Â So the following workflow is recommended: git pull sed -i -e 's/\s*$//' $(find ./ -type f) // ensure...
2683
paulcrowder1979
Nov 17, 2011 3:31 pm
... Writing the code is trivial. Pushing out an IDE plug-in to 100+ developers that will run the code when they save their files, waiting for the plug-in to...
2684
Michael Mikowski
z_mikowski
Nov 17, 2011 10:48 pm
Hey Paul: I feel your pain. Â I don't know your process, environment, and restrictions. Â So all this is speculation. If you are supporting 100+ developers,...
2685
Jean-Charles Meyrignac
jcmeyrignac
Nov 18, 2011 12:43 am
... In my company, we use SVN+CCNet+Nant/MsBuild If you have 100+ developers, you necessarily have a continuous build, and I'm 100% sure that you can script...
2686
Nagy Endre
forewer2000
Nov 18, 2011 2:13 pm
Hi everyone, maybe it's a little offtopic sorry, but can anyone explain why "this" inside the "o" object is refer to window ? Why it's not refer to the "o"...
2687
z_mikowski@...
z_mikowski
Nov 18, 2011 4:19 pm
Javascript does not provide block scope, only functional scope. Therefore the 'this' in your code takes the value as provided to the enclosing function. You...
2688
James
jpdavenportjr
Nov 18, 2011 10:07 pm
Maybe I'm missing something. When I enable "Tolerate many var statements per function" I still get errors for failing to have just one var at the top of the...
2689
Luke Page
page.luke...
Nov 19, 2011 9:27 am
Is it vars in a for loop initializer? If so jslint always rejects these. Otherwise please provide an example. ... [Non-text portions of this message have been...
2690
stauren
stauren...
Nov 21, 2011 7:49 am
I don't think this is about block scope or functional sope. This is probably because the function is executed when the script is being parsed, at which time...
2691
Nagy Endre
forewer2000
Nov 21, 2011 9:43 am
Yes, i realized that in {a: this} the value of "a" is the "window" value, not what we expect, because at runtime probably the object is not created yet, so...