Javascript源代码分析(特别是重复检查) [英] Javascript source code analysis ( specifically duplication checking )

查看:56
本文介绍了Javascript源代码分析(特别是重复检查)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



<注意:
我已经通过编写的工具广泛使用JSLint,该工具会定期扫描当前项目目录中的最近更新/创建的.js文件。它极大地提高了我的生产率,我怀疑是否有价格与JSLint一样的产品(它是免费的)。



也就是说,是否有任何分析工具可以可以找到重复的或几乎重复的代码块,目的是使其更容易找到整合大型文件或中小型项目的机会?

解决方案

可能不完全是您所追求的,但是Google的 JavaScript优化器是值得一看。


Partial duplicate of this

Notes: I already use JSLint extensively via a tool I wrote that scans in intervals my current project directory for recently updated/created .js files. It's drastically improved productivity for me and I doubt there is anything as good as JSLint for the price (it's free).

That said, is there any analysis tool out there that can find repetitive or near-duplicate code blocks, the goal being to make it easier to find opportunities to consolidate large files or small/medium sized projects?

解决方案

May not be exactly what your after, but Google's Javascript optimizer is worth a look.

这篇关于Javascript源代码分析(特别是重复检查)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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