hhvm / type-assert
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
  • 10% duplication:
    • 1,349 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 140 duplicated lines
  • 10 duplicates
system10% (140 lines)
Duplication per Extension
hack10% (140 lines)
Duplication per Component (primary)
src/TypeSpec/__Private12% (140 lines)
src/TypeSpec0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
26:40 (22%)
26:40 (19%)
view
10 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
67:81 (13%)
56:69 (20%)
view
10 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
56:69 (20%)
55:68 (17%)
view
10 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
67:81 (13%)
55:68 (17%)
view
8 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
34:43 (15%)
62:71 (15%)
view
8 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
29:39 (18%)
49:59 (18%)
view
8 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
147:154 (4%)
175:182 (4%)
view
7 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
25:34 (22%)
43:52 (22%)
view
7 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
25:33 (22%)
42:50 (22%)
view
6 x 2 src/TypeSpec/__Private
src/TypeSpec/__Private
37:44 (12%)
37:44 (15%)
view