JavaScript code checking beyond JSLint [closed]

2019-04-20 19:30发布

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条回答
爷的心禁止访问
2楼-- · 2019-04-20 19:45

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

查看更多
登录 后发表回答