Maryam
Maryam

Reputation: 75

How to find duplicates in a large project?

I am trying to use the "Analyze solution for code clones" to remove code smells and duplication. My project is almost large and every time that I use this option It works for a bit but then it seems the process freezes and does not do anything until I have to clone the window. Does anyone know what should I do? Thanks!

Upvotes: 3

Views: 162

Answers (2)

Ira Baxter
Ira Baxter

Reputation: 95400

There are alternative tools, such as our C# CloneDR, which has been run across millions of lines of code in many languages over the last 20 years.

CloneDR is based on finding clones using compiler-style parse trees rather than strings of tokens typical of many other detectors (and I think, how the MS detector operates). As a consequence it produces clones that are aligned with the language structure. CloneDR can also find clones which are near-misses, and show how the clone instances have been parameterized differently.

You can see a generated clone report.

Upvotes: -1

Nils Göde
Nils Göde

Reputation: 555

The answer is to use a professional clone-detection tool like Teamscale or ConQAT.

Upvotes: 3

Related Questions