Detect duplicate code in Visual Studio 2010

后端 未结 1 1280
梦如初夏
梦如初夏 2021-01-18 01:37

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 D

1条回答
  •  深忆病人
    2021-01-18 02:08

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

    0 讨论(0)
提交回复
热议问题