firebase / firebaseopensource.com
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
  • 3% duplication:
    • 3,208 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 122 duplicated lines
  • 6 duplicates
system3% (122 lines)
Duplication per Extension
vue7% (122 lines)
Duplication per Component (primary)
frontend/layouts42% (48 lines)
frontend/components/Projects4% (37 lines)
frontend/components/Homepage6% (21 lines)
frontend/pages/platform25% (8 lines)
frontend/pages26% (8 lines)
frontend0% (0 lines)
frontend/plugins0% (0 lines)
frontend/components/_Shared0% (0 lines)
frontend/assets0% (0 lines)
frontend/assets/styles0% (0 lines)
frontend/pages/projects0% (0 lines)
static0% (0 lines)
shared0% (0 lines)
functions/src0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
24 x 2 frontend/layouts
frontend/layouts
default.vue
error.vue
11:34 (75%)
25:48 (29%)
view
8 x 2 frontend/pages
frontend/pages/platform/_platformId
index.vue
index.vue
26:33 (26%)
28:35 (25%)
view
8 x 2 frontend/components/Projects/SectionH2
frontend/components/Projects/TitleSection
index.vue
index.vue
60:68 (13%)
107:115 (4%)
view
7 x 2 frontend/components/Home...ategoryCard/ProjectItem
frontend/components/Homepage/ReleaseItem
index.vue
index.vue
67:73 (7%)
37:43 (13%)
view
7 x 2 frontend/components/Projects/StagingWarning
frontend/components/Projects
index.vue
index.vue
16:22 (43%)
138:144 (5%)
view
7 x 2 frontend/components/Home...ategoryCard/ProjectItem
frontend/components/Projects
index.vue
index.vue
49:57 (7%)
95:103 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 shared
shared
util.ts
util.ts
5:11 
13:19 
view