The Assume a browser option now includes 'window. Most uses of window are in support of bad practices, but some uses of it are now required by ES5/strict. For...
Hello. I started using express, a framework for node.js. The following line app.use(express.static(__dirname + '/live39;)); gets Expected an identifier and...
Because I'm using my own function for the if statement, this doesn't work: example: var isOwnProperty, object, i; isOwnProperty = function(object, key) {....};...
Hello, I'm new to JSLint, and did not have the time to examine the sources and group messages to a maximum extent; however, I have a question about warnings...
Hello, On the following code: function One(a, b, c) { ````this.value = a + b + c; } function Two(a, b, c) { ````this.value = c + b + a; } var which =...
The /*properties*/ (formerly known as /*members*/) and the /*global*/ directives, when placed in a function, do not influence the environment outside of the...
The /*jslint */ directive now respects function scope. That means that if you change an option setting inside of a function body, it will revert on leaving the...
I'm not sure if HaXe is a dirty word around here, but I've been playing with it recently and found it a reasonable progression from Javascript when I was...
Hi, This code gives a message: Problem at line 5 character 9: Expected an identifier and instead saw '/*jslint39; (a reserved word). That's correct and it's my...
The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature....
Hi, I'm scanning the jslint tree after processing to detect todo comments and warn about them. I also have a plan to validate vsdoc/jsdoc as well. Do you have...
Hi Guys, I've updated the JsLint engine to the 2011-02-24 version in dwlint. I also re-arranged the checkboxes in the config section. Hope it helps you ...
Hi there, I'm trying to build a tool that detects javascript code in any kind of language or file format, for example PHP, ASP.NET, etc. . Not just HTML. Since...
Classification: UNCLASSIFIED ... This is the logic I use for Pretty Diff: if (apilang === "auto") { autotest = true; if (new RegExp(/^(92;s*<)/).test(apisource)...
Working with Node.js (and probably other SSJS solutions), it's pretty common to find yourself working with the file system and using file permissions the...
This is a little O/T, sorry for that in advance. I agree with Douglas on pretty much everything (he's even helped to get me physically fitter!) with one...
Install New Software to http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download Choose jslint4java and, if needed,...
Assignment expressions are fairly rightly considered a Bad Thing by JSLint and most of the sane world, since they are usually bugs not intentional code, e.g.: ...
The documentation states, If you really intend an assignment, wrap it in another set of parens: if ((a = b)) { ... } This used to work until recently, but now...
The error message for a missing semicolon seems confusing to the novice as it highlights the beginning of the subsequent line rather than the end of the...
Perfect, exactly what I have been waiting for in this, your most recent rash of "softening the blow" changes. :) Thank you for all of your efforts, Douglas. ...
I just watched JSLint (Edition 2011-02-20) fail to catch an example of an unfiltered for statement in my code, and broke it down to this test case: function...
”JavaScript: The Good Parts” is a recommended read which explains most of these issues. If that doesn’t do it for you, you could consider just accepting...
Classification: UNCLASSIFIED ... This is purely a cosmetic treatment void of functional benefit. Why would anybody risk breaking their code for this? The only...