Detect duplicate code in Visual Studio 2010

2019-02-21 17:51发布

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

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

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

1条回答
Lonely孤独者°
2楼-- · 2019-02-21 18:16

(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).

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 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 October 2010: CloneDR now supports VB.net, through version 10.0.

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

查看更多
登录 后发表回答