通用代码重复检测工具 [英] generic code duplication detection tool

查看:227
本文介绍了通用代码重复检测工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种语言不可知的代码复制工具。很容易找到特定于语言的代码复制工具(对于Java,C,PHP,...),但是我想在自定义语法中的模板上运行一些代码复制分析。

I'm looking for a code duplication tool that is language agnostic. It's easy to find language specific code duplication tools (for Java, C, PHP, ...), but I'd like to run some code duplication analysis on a templates in a custom syntax.

我不在乎语法的高级解析,只是直线上的原始字符串比较是好的。空白不敏感的匹配将是一个加号,但不是必需的。 (这不是很难自己规范化/消除空白。)

I don't care about advanced parsing of the syntax, just straight line based raw string comparison is fine. Whitespace insensitive matching would be a plus, but not required. (It's not that hard to normalize/eliminate whitespace myself.)

有没有人知道可以(误)用于这样的工具?

Does anybody know a tool that can be (mis)used for something like this?

谢谢。

推荐答案

看看 y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y源代码甚至纯文本文件。

Have a look Simian, you can use it for Java, C#, C, C++, COBOL, Ruby, JSP, ASP, HTML, XML, Visual Basic, Groovy source code and even plain text files.

另外,类似的问题这里

这篇关于通用代码重复检测工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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