Open GoogleCodeExporter opened 8 years ago
The varsattop option does some of what you're looking for, but probably not
enough.
Original comment by paul.beu...@gmail.com
on 16 Nov 2012 at 6:01
Thanks for the response, but I'm afraid I didn't explain well: I'm trying to
get rid of (specious) warnings, not add more ;-) Enabling varsattop would just
give me more of exactly the type of warnings I want to get rid of (the
"Crockford hates on X because he forgets what language he's in and it'd be
wrong in C/C++/Java/etc." warnings).
As a Javascript developer I find these "false positives" to be very misleading;
there is nothing wrong with declaring a variable inside a "for" (varsattop) or
"if" (ascope?) block. However, despite flagging these false positives, JSLint
also flags some very helpful cases, and I don't want to throw the baby out with
the bath water. In other words, I'm hoping there's some way to just disable
this class of Crockford's craziness while preserving the rest of his genius :-)
Original comment by jer...@syapse.com
on 16 Nov 2012 at 6:38
I understood. Turning off varsattop is not possible in Crockford's jslint. I
added it and made it the default.
Original comment by paul.beu...@gmail.com
on 16 Nov 2012 at 6:54
Ahhhh, I understand now; in that case kudos for doing that much at least!
Original comment by jer...@syapse.com
on 16 Nov 2012 at 9:46
Original issue reported on code.google.com by
jer...@syapse.com
on 16 Nov 2012 at 1:43