JSHint
原作者 | Anton Kovalyov,由Douglas Crockford的项目JSLint改写 |
---|---|
首次发布 | 2011年2月18日 |
当前版本 | |
源代码库 | |
编程语言 | JavaScript |
操作系统 | 跨平台 |
语言 | English |
类型 | 静态代码分析 |
许可协议 | Modified MIT license |
网站 | jshint |
JSHint是一个静态代码分析工具,用于检查JavaScript源代码是否符合编码规范[3]。JSHint由Anton Kovalyov于2011年作为JSLint项目的一个分支创建,而JSLint是由Douglas Crockford创建的[4][5]。Anton和一些程序员认为JSLint过于“自命不凡”,并且自定义选项过少[6][7][8][9]。JSHint的维护者同时负责维护一个网页引用版本和一个命令行版本[10]。
用户可以通过官方网站访问在线版本,在其中粘贴代码以进行JSHint在线运行[3]。另外,JSHint的命令行版本(作为Node.js的模块发布),允许开发者将其集成到项目的开发工作流程中,从而实现自动化代码检查流程[11]。
许可
[编辑]JSHint是在MIT许可证下发布的,除了一个仍然使用“JSLint许可证”的文件外,该许可是MIT许可的稍作修改版本。许可的附加条款规定软件应用于“善意而非邪恶”。根据自由软件基金会的描述,由于这一条款的存在,这个软件被认为是非自由软件[12]。
参考文献
[编辑]- ^ Release 2.13.6. 2022年11月11日 [2022年11月15日].
- ^ https://registry.npmjs.com/jshint; 检索日期: 2023年3月3日.
- ^ 3.0 3.1 Graham, Wayne. Beginning Facebook Game Apps Development. Apress. 2012 [2019-06-26]. ISBN 9781430241706. (原始内容存档于2017-04-25).
- ^ Why I forked JSLint to JSHint. anton.kovalyov.net. Anton Kovalyov. 2011-02-20 [2018-02-26]. (原始内容存档于2011-02-24).
[JSLint] has gotten uncomfortably opinionated
- ^ JSHint: A Community Driven Fork of JSLint. badassjs.com. Devon Govett. 18 February 2011 [2011-02-21]. (原始内容存档于2011-02-21).
[..] JSLint was getting a bit too opinionated [..]
- ^ Elliot, Ian. JSHint - the (gentler) JavaScript code quality tool. www.i-programmer.info. 21 February 2011 [2018-02-26]. (原始内容存档于2011-02-23) (英国英语).
- ^ Paren-Free. Brendan Eich. 2011-02-28 [2018-02-26]. (原始内容存档于2011-02-28).
- ^ Help: JSHint. codekitapp.com. 2018-02-26 [2018-02-26]. (原始内容存档于2018-02-26).
designed to be less opinionated and more configurable
- ^ JSLint vs JSHint. Scott Logic. [2018-02-26]. (原始内容存档于2018-02-26).
- ^ JSHint Team on GitHub. GitHub. [2018-02-26]. (原始内容存档于2019-10-17) (英语).
Anton Kovalyov, Paul Irish, Rick Waldron, Mike Pennisi (@jugglinmike)
- ^ Kovalyov, Anton. JSHint - a JavaScript Code Quality Tool. [22 January 2013]. (原始内容存档于2013-01-18).
- ^ https://www.gnu.org/licenses/license-list.en.html#JSON (页面存档备份,存于互联网档案馆) see the comment about the JSON license
延伸阅读
[编辑]- Zakas, Nicholas. Maintainable JavaScript 1. O'Reilly Media. May 2012 [2019-06-26]. ISBN 978-1-449-32768-2. (原始内容存档于2017-03-04).
- Otero, Cesar. Professional jQuery 1. John Wiley & Sons. May 2012 [2019-06-26]. ISBN 978-1-118-02668-7. (原始内容存档于2017-03-04).
- Ullman, Larry. Modern JavaScript: Develop and Design 1. Peachpit Press. February 2012 [2019-06-26]. ISBN 978-0321812520. (原始内容存档于2017-03-04).
- JSHint - the (gentler) JavaScript code quality tool. IProgrammer. February 21, 2011 [June 6, 2012]. (原始内容存档于2011-02-23).
外部链接
[编辑]
|
|
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.