facebookincubator / xar
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
  • 6% duplication:
    • 3,719 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 241 duplicated lines
  • 94 duplicates
system6% (241 lines)
Duplication per Extension
cpp15% (241 lines)
Duplication per Component (primary)
xar8% (241 lines)
ROOT0% (0 lines)
xar/clean_xar_mounts0% (0 lines)
xar/clean_xar_mounts/src0% (0 lines)
xar/commands0% (0 lines)
xar/deprecated0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 94 duplicates...
Size#FoldersFilesLinesCode
10 x 2 xar
xar
599:610 (1%)
616:627 (1%)
view
10 x 2 xar
xar
509:520 (1%)
560:571 (1%)
view
10 x 2 xar
xar
509:520 (1%)
543:554 (1%)
view
10 x 2 xar
xar
526:537 (1%)
543:554 (1%)
view
10 x 2 xar
xar
526:537 (1%)
560:571 (1%)
view
10 x 2 xar
xar
509:520 (1%)
526:537 (1%)
view
10 x 2 xar
xar
543:554 (1%)
560:571 (1%)
view
9 x 2 xar
xar
429:438 (1%)
634:643 (1%)
view
9 x 2 xar
xar
634:643 (1%)
654:663 (1%)
view
9 x 2 xar
xar
473:483 (1%)
490:500 (1%)
view
9 x 2 xar
xar
429:438 (1%)
654:663 (1%)
view
9 x 2 xar
xar
411:421 (1%)
435:445 (1%)
view
9 x 2 xar
xar
452:462 (1%)
579:589 (1%)
view
8 x 2 xar
xar
509:518 (1%)
580:589 (1%)
view
8 x 2 xar
xar
453:462 (1%)
543:552 (1%)
view
8 x 2 xar
xar
472:481 (1%)
598:607 (1%)
view
8 x 2 xar
xar
453:462 (1%)
560:569 (1%)
view
8 x 2 xar
xar
509:518 (1%)
598:607 (1%)
view
8 x 2 xar
xar
543:552 (1%)
598:607 (1%)
view
8 x 2 xar
xar
255:264 (1%)
266:275 (1%)
view
8 x 2 xar
xar
472:481 (1%)
526:535 (1%)
view
8 x 2 xar
xar
560:569 (1%)
580:589 (1%)
view
8 x 2 xar
xar
472:481 (1%)
509:518 (1%)
view
8 x 2 xar
xar
431:440 (1%)
452:461 (1%)
view
8 x 2 xar
xar
453:462 (1%)
526:535 (1%)
view
8 x 2 xar
xar
560:569 (1%)
598:607 (1%)
view
8 x 2 xar
xar
453:462 (1%)
509:518 (1%)
view
8 x 2 xar
xar
431:440 (1%)
579:588 (1%)
view
8 x 2 xar
xar
543:552 (1%)
580:589 (1%)
view
8 x 2 xar
xar
526:535 (1%)
598:607 (1%)
view
8 x 2 xar
xar
453:462 (1%)
472:481 (1%)
view
8 x 2 xar
xar
472:481 (1%)
580:589 (1%)
view
8 x 2 xar
xar
472:481 (1%)
560:569 (1%)
view
8 x 2 xar
xar
526:535 (1%)
580:589 (1%)
view
8 x 2 xar
xar
453:462 (1%)
598:607 (1%)
view
8 x 2 xar
xar
472:481 (1%)
543:552 (1%)
view
8 x 2 xar
xar
580:589 (1%)
598:607 (1%)
view
7 x 2 xar
xar
452:459 (1%)
636:643 (1%)
view
7 x 2 xar
xar
490:498 (1%)
527:535 (1%)
view
7 x 2 xar
xar
432:440 (1%)
509:517 (1%)
view
7 x 2 xar
xar
561:569 (1%)
616:624 (1%)
view
7 x 2 xar
xar
490:498 (1%)
561:569 (1%)
view
7 x 2 xar
xar
490:498 (1%)
544:552 (1%)
view
7 x 2 xar
xar
432:440 (1%)
526:534 (1%)
view
7 x 2 xar
xar
490:498 (1%)
581:589 (1%)
view
7 x 2 xar
xar
473:481 (1%)
616:624 (1%)
view
7 x 2 xar
xar
432:440 (1%)
598:606 (1%)
view
7 x 2 xar
xar
452:459 (1%)
656:663 (1%)
view
7 x 2 xar
xar
544:552 (1%)
616:624 (1%)
view
7 x 2 xar
xar
579:586 (1%)
656:663 (1%)
view