Reputation: 5951
Are there any tools to detect repetitive code in iOS / Objective-C apps?
Upvotes: 18
Views: 4663
Reputation: 6084
Here's a ZIP of a project that uses same approach (PMD's CPD) and shows the results in Xcode's build log.
Upvotes: 10
Reputation: 2533
You can use Jenkins and PMD's Copy Paste Detector (CPD) to find duplicate code in your objective C source code. See instructions here: http://deadmeta4.com/2011/05/17/objective-c-copy-paste-detection-using-jenkins/
Upvotes: 10