JSLint之外的JavaScript代码检查 [英] JavaScript code checking beyond JSLint

查看:109
本文介绍了JSLint之外的JavaScript代码检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找像Checkstyle for JavaScript一样的东西。我知道JSLint并且我已经在使用Google的Closure编译器,但这些主要是检查语法问题。 Checkstyle可以检查错误行上的大括号,但它也可以编写自定义检查,如不使用HashMap。

I'm looking for something that works like Checkstyle for JavaScript. I know about JSLint and I'm already using Google's Closure compiler, but these mostly check for syntactic issues. Checkstyle can check for braces on the wrong line, but it also makes it possible to write custom checks like don't use HashMap.

我正在为即将到来的JavaScript项目寻找类似的东西。任何想法?

I'm looking for something like that for an upcoming JavaScript project. Any ideas?

推荐答案

Google Closure Linter: http://code.google.com/closure/utilities/

Google Closure Linter: http://code.google.com/closure/utilities/

Closure Linter是一个检查实用程序样式问题的JavaScript文件,例如运算符放置,缺少分号,间距,JsDoc注释的存在等等。

"The Closure Linter is a utility that checks JavaScript files for style issues such as operator placement, missing semicolons, spacing, the presence of JsDoc annotations, and more."

这篇关于JSLint之外的JavaScript代码检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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