Are there any tools to detect repetitive code in iOS / Objective-C apps?
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/
Here's a ZIP of a project that uses same approach (PMD's CPD) and shows the results in Xcode's build log.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With