Alternatively, all the other options could be renamed to follow the same convention so that all uses can consistently need to lookup what options mean instead...
2848
Morgaut Alexandre Lou...
morgaut_a
Apr 2, 2012 10:19 am
I find this option name fun and maybe It could be a right name in NodeJS context. That said, I also think that there might be some valid use of "Sync" methods...
2849
mariana.schiff
Apr 4, 2012 2:41 pm
I modified the wsh.js code to, basically, put "the fix" back in. Replace the line source = file.ReadAll(); with the following: source = File.ReadAll() ...
2850
Sean Kelly
seank_com
Apr 4, 2012 5:43 pm
OK, I updated the page, let me know if it looks right. On Wed, Apr 4, 2012 at 7:41 AM, mariana.schiff ... [Non-text portions of this message have been removed]...
2851
mariana.schiff
Apr 4, 2012 5:51 pm
Looks great (I had misspelled 'file'). Thanks for the credit, Mariana...
2852
larserik78
Apr 10, 2012 7:56 am
Hi! I've created a plugin for resharper that highglights warnings from JSLint in js files. To test it, I've started creating small testfiles, and I've gotten...
2853
douglascrockford
douglascrock...
Apr 10, 2012 9:12 am
... Yes. Fix your code, then it won't stop. For example, var i, x; i = 1; x = 2;...
2854
larserik78
Apr 10, 2012 9:19 am
... Thanks, but that's missing the point. I'm testing the highlighting from my plugin, not trying to fool JSLint into letting my own javascripts look bad. ;) ...
2855
mariana.schiff
Apr 10, 2012 5:39 pm
If you go to the Database section of this group, you'll find a link to SeanK's blog with a WSH implementation. That's the one I'm using....
2856
larserik78
Apr 10, 2012 6:30 pm
Ah, didn't notice that menu item. My plugin should be in there. :) (http://resharperjslint.codeplex.com) I'm using the wsh snippet JSLint.VS is using. ...
2857
Štefan Bunčiak
pipistik_bun...
Apr 18, 2012 2:20 pm
Greetings! I'm Red Hat's JBDS QE and found a bug in the JSLint integration. The issue is filed here: https://issues.jboss.org/browse/JBDS-2062 Are you able to...
2858
sandyhead25
Apr 19, 2012 3:31 pm
This does not appear to be a JSLint bug. It appears to be a bug with some level of application integration. I believe that would make it a JSLex problem. In...
2859
benquarmby
Apr 23, 2012 3:52 am
I realize the topic of unused arguments has been discussed before, but I wanted to raise it again with a suggested alternative behavior. When creating...
2860
sandyhead25
Apr 28, 2012 11:17 am
While I understand the passing of functions as arguments of other functions is a common style in many frameworks it is extremely sloppy. This is an...
2861
Max
oeroeroer
Apr 29, 2012 6:12 am
You might want to spend some time on Google, looking up functional programming, what it is, what it is good for. Discover its strengths. There is a whole lot...
2862
benquarmby
Apr 30, 2012 1:16 am
Thanks for the reply Austin. I'm not 100% sure if you're saying passing functions as arguments is bad per-se (they're first class in JavaScript), or if it's...
2863
benquarmby
Apr 30, 2012 1:56 am
Just to add another option, what do you think of creating proxy functions to "fix" an API that uses a lot of arguments in callbacks? Using my previous code as...
2864
sandyhead25
Apr 30, 2012 2:45 am
Please do not make this an ad hominem. Whether or not I am absolutely ignorant of how to write functional code in JavaScript your point adds nothing to the...
2865
sandyhead25
Apr 30, 2012 3:32 am
Ben, It is correct that functions are first class objects in JavaScript. That statement goes to the syntax and definition of functions in the language opposed...
2866
benquarmby
Apr 30, 2012 4:22 am
Thanks again Austin. I see your point. This argument aside (ba-dum-tish!), my real question is whether JSLint should allow early unused arguments. So...
2867
Andy Dawson
using_yg_und...
Apr 30, 2012 7:38 am
... Please clarify why: foo(arg, function() { callThis(with, these, arguments); }); Is considered extremely sloppy. AD [Non-text portions of this message have...
2868
douglascrockford
douglascrock...
Apr 30, 2012 2:01 pm
... Yes it should, because it is often an error. But if you are intentionally writing code that looks like an error, and don't want to be reminded of that...
2869
douglascrockford
douglascrock...
Apr 30, 2012 9:54 pm
Would anyone miss the Syntax Tree button?...
2870
Pierre Martineau
pierremartineau
Apr 30, 2012 10:24 pm
I rarely use it, but I like it a lot when I do. So I would miss it. Thank you for this wonderful tool. Pierre Martineau ... From: "douglascrockford"...
2871
benquarmby
May 1, 2012 3:22 am
Thanks for the reply. Of course you're right (an annoying habit). Do you have a suggestion on creating callback / handler functions like this that don't look...
2872
Dylon Edwards
deeclhtoa
May 2, 2012 1:44 am
I use it, too. Dylon ... [Non-text portions of this message have been removed]...
2873
Martin Cooper
mfncooper
May 9, 2012 4:00 pm
I was surprised to find that JSLint doesn't complain about the following code: function doCheck(arr1, arr2, checker) { var i, l; for (i = 0, l = arr1.length; i...
2874
Max
oeroeroer
May 9, 2012 4:57 pm
What might be the general rule be, just literally "Nested for loops shouldn't share control variables"? Or is there a larger principle at play here?...
2875
Rob Richardson
erobrich@...
May 9, 2012 6:16 pm
I think an even larger issue should be checking for identically named variables declared in different scope. This too should be illegal: function a() { ...
2876
John Hawkinson
john.hawkinson
May 9, 2012 9:30 pm
Rob Richardson <erobrich@...> wrote on Wed, 9 May 2012 ... I don't agree. i is a common counter variable. It is reasonable style to use i as the...