JSLint 站点更新了,我不能再检查 JS 脚本了。对我来说,这个警告并不重要,我不想通过数千行代码来解决这个问题,我想找到更多重要的问题。
有人知道如何关闭此错误或使用遗留的 JSLint 吗?
更新
例如:
function doSomethingWithNodes(nodes){
this.doSomething();
for (var i = 0; i < nodes.length; ++i){
this.doSomethingElse(nodes[i]);
}
doSomething(); // want to find this problem
}
Jslint.com 输出:
Error:
Problem at line 4 character 8: Move all 'var' declarations to the top of the function.
for (var i = 0; i < nodes.length; ++i){
Problem at line 4 character 8: Stopping, unable to continue. (44% scanned).
问题:
在函数之上添加变量是新的要求。我不能使用 JSLINT 来测试代码,因为它会停止扫描这个错误的脚本。
我有很多代码,我不想把这个警告作为关键错误来威胁。
更新8/22/2011: 发现 http://jshint.com,它看起来比 http://jslint.com/好多了