How do I find duplicates in a large project?

I am trying to use Code Clone Solution Analysis to remove odors and code duplication. My project is almost large and every time I use this option it works a little, but then it seems that the process hangs and does nothing until I clone the window. Does anyone know what to do? Thank!

+3


source to share


2 answers


The answer lies in using a professional clone detection tool like Teamscale or ConQAT .



+3


source


There are alternative tools such as C # CloneDR , which has been launched through millions of lines of code in many languages ​​over the past 20 years.

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



You can see the generated clone report.

-1


source







All Articles