hhvm / definition-finder
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:
    • 2,175 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 139 duplicated lines
  • 14 duplicates
system6% (139 lines)
Duplication per Extension
hack6% (139 lines)
Duplication per Component (primary)
src/definitions15% (89 lines)
src/consumers4% (38 lines)
src/expression2% (12 lines)
src0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/consumers
src/consumers
27:38 (5%)
43:54 (5%)
view
8 x 2 src/definitions
src/definitions
51:64 (13%)
66:79 (15%)
view
8 x 2 src/definitions
src/definitions
42:55 (21%)
40:53 (25%)
view
7 x 2 src/consumers
src/consumers
125:131 (7%)
50:56 (18%)
view
7 x 2 src/definitions
src/definitions
15:21 (18%)
16:22 (21%)
view
6 x 2 src/definitions
src/definitions
16:21 (27%)
15:20 (15%)
view
6 x 2 src/definitions
src/definitions
15:20 (15%)
17:22 (18%)
view
6 x 2 src/definitions
src/definitions
16:21 (27%)
17:22 (18%)
view
6 x 2 src/definitions
src/definitions
16:21 (15%)
15:20 (15%)
view
6 x 2 src/expression
src/expression
18:23 (75%)
18:23 (75%)
view
6 x 2 src/definitions
src/definitions
34:43 (18%)
29:38 (26%)
view
6 x 2 src/definitions
src/definitions
21:27 (10%)
15:20 (27%)
view
6 x 2 src/definitions
src/definitions
26:35 (15%)
27:36 (18%)
view
6 x 2 src/definitions
src/definitions
16:21 (27%)
16:21 (15%)
view