检测 Visual Studio 2010 中的重复代码 [英] Detect duplicate code in Visual Studio 2010

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

问题描述

Clone Detective 是在 VS 2008 中查找重复代码的绝佳工具.

Clone Detective was a great tool for finding duplicate code in VS 2008.

是否有任何工具可以查找集成到 VS 2010 中的重复代码?

Are there any tools for finding duplicate code which integrate into VS 2010?

*Clone Detective 看起来并没有被积极开发1 2.

*Clone Detective doesn't look like its being actively developed 1 2.

推荐答案

(几周后您似乎没有得到任何答案...暗示没有任何方案可以完全满足您的要求).

(You don't seem to have gotten any answers after a couple of weeks... hints there aren't any that do exactly what you want).

我们的 CloneDR 是一种检测 C# 4.0 和现代 Microsoft C++ 方言的克隆代码的工具,解析为抽象语法树以驱动克隆检测过程.恕我直言,这产生了比 ConQAT 使用的基于令牌的方案(Clone Detective 使用的)更高质量的结果.您可以在提供的链接中查看示例报告.

Our CloneDR is a tool that detects cloned code for C# 4.0 and modern Microsoft C++ dialects, parsing to abstract syntax trees to drive the clone detection process. This produces, IMHO, a higher-quality result than the token-based scheme used by ConQAT (which Clone Detective uses). You can see sample reports at the provided link.

CloneDR 没有专门集成到 VS 2010 中,但它确实在 Windows 下运行,并且它的命令行变体可以作为 VS 2010 自定义操作轻松附加.正在不断完善中.

CloneDR doesn't specifically integrate into VS 2010, but it does run under Windows and its command-line variant could be easily attached as a VS 2010 custom action. It is under continual enhancement.

EDIT 2010 年 10 月:CloneDR 现在通过 10.0 版支持 VB.net.

EDIT October 2010: CloneDR now supports VB.net, through version 10.0.

EDIT 2015 年 11 月:现在支持 VS2013 C++ 和 C# 5.0(C# 6.0 即将推出!)

EDIT November 2015: Now supports VS2013 C++ and C# 5.0 (C# 6.0 coming!)

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

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