facebook / FBRetainCycleDetector
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 5% duplication:
    • 2,545 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 142 duplicated lines
  • 13 duplicates
system5% (142 lines)
Duplication per Extension
mm5% (78 lines)
m9% (64 lines)
Duplication per Component (primary)
FBRetainCycleDetectorTests11% (142 lines)
rcd_fishhook0% (0 lines)
github/workflows0% (0 lines)
FBRetainCycleDetector/Associations0% (0 lines)
FBRetainCycleDetector/Associations/Internal0% (0 lines)
FBRetainCycleDetector/Filtering0% (0 lines)
FBRetainCycleDetector/Layout/Blocks0% (0 lines)
FBRetainCycleDetector/Layout/Classes0% (0 lines)
FBRetainCycleDetector/Graph0% (0 lines)
FBRetainCycleDetector/Graph/Specialization0% (0 lines)
FBRetainCycleDetector/Graph/Internal0% (0 lines)
FBRetainCycleDetector0% (0 lines)
FBRetainCycleDetector/Detector0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
8 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
513:522 (1%)
536:545 (1%)
view
8 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
50:60 (13%)
71:81 (13%)
view
8 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
138:147 (1%)
664:673 (1%)
view
8 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
162:172 (5%)
181:191 (5%)
view
7 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
52:62 (12%)
97:107 (12%)
view
7 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
335:342 (1%)
729:736 (1%)
view
7 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
188:196 (1%)
418:426 (1%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
73:81 (10%)
97:105 (10%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
33:38 (16%)
53:58 (16%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
285:290 (1%)
335:340 (1%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
108:116 (1%)
582:590 (1%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
218:227 (3%)
235:244 (3%)
view
6 x 2 FBRetainCycleDetectorTests
FBRetainCycleDetectorTests
285:290 (1%)
729:734 (1%)
view