Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are good tools for identifying potentially duplicated code for C# Express users? [closed]

see also "Any tools to check for duplicate VB.NET code?"

A friend of mine only has access to the Express editions of Visual Studio and I am trying to help him refactor to remove a lot of duplication.

like image 877
BlackWasp Avatar asked Apr 16 '09 21:04

BlackWasp


People also ask

What is duplicated source code?

In computer programming, duplicate code is a sequence of source code that occurs more than once, either within a program or across different programs owned or maintained by the same entity. Duplicate code is generally considered undesirable for a number of reasons.

What is duplicated in Sonarqube?

Sonar uses the following four metrics to cover code duplication. Duplicated lines can also be expressed as a percentage value and we will create an alert with a threshold value of five percent. Number of physical lines touched by duplication. Number of duplicated blocks participating in duplication.

What is duplicated code fragment?

Code Inspection: Duplicated code fragmentReports duplicated blocks of code from the selected scope: the same file or the entire project. The inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window.


2 Answers

You could take a look at Simian or DuplicateFinder. Neither have a dependency on the IDE, although you can integrate Simian quite easily.

like image 133
HowardvanRooijen Avatar answered Sep 26 '22 09:09

HowardvanRooijen


Clone Detective appears as though it might work for you. I haven't used it before, but I stumbled across it on codeplex this week.

like image 22
Timothy Carter Avatar answered Sep 23 '22 09:09

Timothy Carter