JavaScript code checking beyond JSLint [closed]

牧云@^-^@ 提交于 2019-12-06 22:05:24

问题


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.

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


回答1:


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

"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."



来源:https://stackoverflow.com/questions/1882810/javascript-code-checking-beyond-jslint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!