Mantas
Mantas

Reputation: 5951

DRYing code in iOS / Objective-C

Are there any tools to detect repetitive code in iOS / Objective-C apps?

Upvotes: 18

Views: 4663

Answers (2)

tt.Kilew
tt.Kilew

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.

enter image description here

Upvotes: 10

Vineet Bhatia
Vineet Bhatia

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

Related Questions