firebase / oss-bot
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
  • 5% duplication:
    • 4,494 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 250 duplicated lines
  • 15 duplicates
system5% (250 lines)
Duplication per Extension
ts4% (135 lines)
html31% (85 lines)
js5% (16 lines)
mjml9% (14 lines)
Duplication per Component (primary)
functions/src4% (135 lines)
public15% (101 lines)
functions/templates9% (14 lines)
public/assets/css0% (0 lines)
functions/src/scripts0% (0 lines)
functions/src/shared0% (0 lines)
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
21 x 2 public
public
index.html
samscore.html
35:66 (40%)
44:75 (25%)
view
17 x 2 functions/src
functions/src
types.ts
types.ts
295:311 (2%)
462:478 (2%)
view
14 x 2 public
public
index.html
samscore.html
1:22 (26%)
1:17 (16%)
view
8 x 2 functions/src
functions/src
report.ts
report.ts
515:526 (1%)
538:547 (1%)
view
8 x 2 public
public
charts.js
charts.js
169:177 (4%)
183:191 (4%)
view
8 x 2 public
public
index.html
samscore.html
26:35 (15%)
26:35 (9%)
view
8 x 2 functions/src
functions/src
types.ts
types.ts
93:101 (1%)
118:126 (1%)
view
7 x 2 functions/src
functions/src
report.ts
report.ts
498:504 (1%)
515:523 (1%)
view
7 x 2 functions/src
functions/src
report.ts
report.ts
498:504 (1%)
538:544 (1%)
view
7 x 2 functions/src
functions/src
types.ts
types.ts
104:113 (1%)
129:138 (1%)
view
7 x 2 functions/templates
functions/templates
mjml
repo-weekly.mjml
weekly.mjml
1:8 (13%)
1:8 (6%)
view
6 x 2 functions/src
functions/src
cron.ts
cron.ts
104:109 (2%)
168:173 (2%)
view
6 x 2 functions/src
functions/src
issues.ts
pullrequests.ts
329:337 (1%)
136:144 (8%)
view
6 x 2 functions/src
functions/src
cron.ts
cron.ts
85:90 (2%)
156:161 (2%)
view
6 x 2 functions/src
functions/src
issues.ts
issues.ts
192:197 (1%)
553:558 (1%)
view