3

I'm looking for some tool/library that would scan given project tree, and report on code duplicates - i.e. blocks of code that are repeated in various files.

Is there anything like this?

As it is now, I have to view them (files) all, and search for duplicates, but it doesn't strike me as very efficient.

  • How much Perl code do you have? (files, total sloc)? – Ira Baxter Jun 07 '11 at 05:03
  • Not much. < 30 files, total sloc ~3k. –  Jun 07 '11 at 23:14
  • I'm completing a CloneDR-based duplicated code finder tool (see www.semanticdesigns.com/Products/CloneDR) for Perl. I really like real examples. Can I have your 30 files? If it all works, I'll send you the report and eventually the production tool. (Zip file?) – Ira Baxter Jun 07 '11 at 23:27
  • @Ira: https://github.com/omniti-labs/omnipitr - that's the code I would like analyzed now. –  Jun 08 '11 at 11:07
  • Download.... working... may be a few days – Ira Baxter Jun 08 '11 at 16:22

1 Answers1

2

A System for Detecting Software Plagiarism might work; it supports Perl.

And here's a list.

Brian Carlton
  • 7,545
  • 5
  • 38
  • 47