JSLint是否可供离线使用? [英] Is JSLint available for offline use?

查看:96
本文介绍了JSLint是否可供离线使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 JSLint ,但是我对可以访问未过滤的工具有所警惕源代码。是否有离线版本或有另一个类似的工具,对JavaScript脱机执行 lint 错误检查?



编辑:使用GUI,显示错误列表,而不是命令行界面?

解决方案

如果您喜欢 JSLint网络界面,您可以执行文件> > 保存页面为... 另存为类型: Web页面,完成(在Firefox中,在Internet Explorer中执行此操作可能略有不同)到本地文件夹。



$ jslint.htm 在8.3下没有空格。



/ p>

三件事:


  1. 这可能违反了他的执照,完整,不修改任何他的代码,技术上我的网络浏览器已经创建了他的网站的副本在我的本地高清,所以我不知道我是否违反了,我不是律师,所以我会继续这样做,直到我收到一封信告诉我停止。

  2. 页面可能仍然能够发送您的代码到互联网,虽然有可能是非常遥远。也就是说,WSH或Rhino版本可能会发送你提交到互联网的代码比本地保存的网页中的版本更容易(如果你偏执)。

  3. 我们会得到道格拉斯的任何错误修复或更新。但是如果不定期更新它们,同样的情况也适用于WSH或Rhino版本。


I'd like to use JSLint, but I am wary of tools that have access to my unfiltered source code. Is there an offline version or is there another similar tool that does "lint error checking" for JavaScript offline?

Edit: One with a GUI and that shows you a styled list of errors, instead of a command line interface?

解决方案

If you like the JSLint web interface, you can do File > Save Page As... and Save as type: Web Page, complete (in Firefox, doing it in Internet Explorer may be slightly different) to a local folder.

I change the name to jslint.htm to get it under 8.3 with no spaces.

It seems to work when saved locally.

Three things:

  1. This may violate his license, although I leave the Copyright intact and don't modify any of his code, and technically my web browser already created a copy of his site on my local HD, so I'm not sure whether I'm in violation or not and I'm not a lawyer so I'll keep doing this until I get a letter telling me to stop.
  2. The page may somehow still be able to send your code to the Internet, although the chance of it being possible is very remote. That said, the WSH or Rhino versions could probably send the code you submit to the Internet easier than a version in a locally saved web page could (if you're paranoid).
  3. You'll get behind on any bug fixes or updates Douglas does. But the same thing applies to the WSH or Rhino versions if you don't update them regularly.

这篇关于JSLint是否可供离线使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆