Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to finding redundancy through out a set of library code (.net C#)?

Is there a tool to finding redundancy through out a set of library code (.net C#)?

The problem is I have a number of .NET libraries, but they tend to have a lot of similar/duplicate "helper" or "utility" functions. Some times the code may not be exactly utility, but follows similar patterns with slightly different naming.

Is there a tool of some kind that can spot these similarities and report them on a batch of C# libraries?

like image 270
lucidquiet Avatar asked Dec 07 '11 16:12

lucidquiet


1 Answers

Visual Studio 11 (currently only a developer preview) has this functionality. You can download the Developer Preview for free to check it out.

It's called Code Clone Analysis and it searches trough your code looking for similarities and generates a report that varies from exact matches to probable matches.

Here you can find a small example.

like image 167
Wouter de Kort Avatar answered Nov 15 '22 00:11

Wouter de Kort