Search code examples
code-analysiscopy-pastestatic-analysiscode-duplication

Do tools exist which automatically find copy-and-paste code?


Are there tools out there which could automatically find copy-and-paste code among a set of files?

I was thinking of writing a script for this, which would just search for equal strings, but such script would find mostly irrelevant equalities. (Such as private final static ...).


Solution

  • Yes, try the Copy Paste Detector.