hhvm / fbexpect
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
  • 8% duplication:
    • 940 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 76 duplicated lines
  • 6 duplicates
system8% (76 lines)
Duplication per Extension
hack8% (76 lines)
Duplication per Component (primary)
src8% (76 lines)
src/Exception0% (0 lines)
src/Constraint0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src
src
437:445 (1%)
475:483 (1%)
view
7 x 2 src
src
424:432 (1%)
462:470 (1%)
view
6 x 2 src
src
417:422 (1%)
455:460 (1%)
view
6 x 2 src
src
379:384 (1%)
405:410 (1%)
view
6 x 2 src
src
323:328 (1%)
344:349 (1%)
view
6 x 2 src
src
265:270 (1%)
487:492 (1%)
view