Javascript源代码分析(特别是重复检查) [英] Javascript source code analysis ( specifically duplication checking )
问题描述
<注意:
我已经通过编写的工具广泛使用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屋!