PMD - Finding copied and pasted code. Check out all the copy and pasted code in the Java 1.4 libraries!! My gosh! (Via Paul (thanks!), via Jared.) I think it's fitting that the Copy/Paste detector is itself written in Java.
Unfortunately this tool probably grossly underestimates the amount of duplication in a codebase. Often when code is copy and pasted it's changed slightly, but best I can tell this looks for an exact match. So, best I can tell, you can have 1000 lines of duplicated code with one character difference and it won't find it. (Or, maybe it'll find two smaller chunks of duplicated code...)
new⇒Spider solitaire
Does anyone play without usingUndo, without choosing the gamethey play, a...
You Don't Even Realize: Nov 22, 5:14pm