hhvm / hacktest
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
  • 7% duplication:
    • 1,006 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 74 duplicated lines
  • 5 duplicates
system7% (74 lines)
Duplication per Extension
hack7% (74 lines)
Duplication per Component (primary)
src/_Private16% (60 lines)
src8% (14 lines)
src/Framework0% (0 lines)
src/Runner0% (0 lines)
src/enum0% (0 lines)
src/Retriever0% (0 lines)
src/Exception0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/_Private
src/_Private
20:28 (19%)
21:29 (12%)
view
8 x 2 src/_Private
src/_Private
51:59 (17%)
76:83 (10%)
view
7 x 2 src
src
42:48 (7%)
63:69 (7%)
view
7 x 2 src/_Private
src/_Private
41:47 (9%)
55:61 (9%)
view
6 x 2 src/_Private
src/_Private
83:88 (8%)
91:96 (8%)
view