How to detect code duplication during development ?
Posted
by David Dibben
on Stack Overflow
See other posts from Stack Overflow
or by David Dibben
Published on 2008-10-10T14:34:27Z
Indexed on
2010/04/29
3:27 UTC
Read the original article
Hit count: 392
We have a fairly large code base, 400K LOC of C++, and code duplication is something of a problem. Are there any tools which can effectively detect duplicated blocks of code?
Ideally this would be something that developers could use during development rather than just run occasionally to see where the problems are. It would also be nice if we could integrate such a tool with CruiseControl to give a report after each check in.
I had a look at Duploc some time ago, it showed a nice graph but requires a smalltalk environment to use it, which makes running it automatically rather difficult.
Free tools would be nice, but if there are some good commercial tools I would also be interested.
© Stack Overflow or respective owner