node.js 如何做代码静态检查?
PHPz
PHPz 2017-04-17 11:32:59
0
2
552

如题,给位大神,给推荐个工具或者方法吧,最好附上检查的详细方法或者工具使用方法,谢谢了!

PHPz
PHPz

学习是最好的投资!

reply all(2)
阿神

There is a static code inspection tool, Facebook's Flow, and it has also been reported on infoq. See the documentation for specific usage.

But currently only two versions are available: Linux and Mac OS.

Source code is hosted on GITHUB

To be honest, this tool is not yet mature and I have never used it. It feels like it will limit the flexibility of the code.

There is a js code quality detection tool, jslint. Can be conveniently integrated with Gulp or Grunt.

Using code inspection is not as good as directly using Typescript language tools like AtScript, js超集. Their compilers will accurately prompt error locations and modification suggestions.

PHPzhong

Welcome to the TypeScript family~ http://typescriptlang.com

The tool can be used with Visual Studio 2013 Express/Community.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template