aws-observability / aws-rum-web
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
  • 25% duplication:
    • 4,869 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,254 duplicated lines
  • 271 duplicates
system25% (1,254 lines)
Duplication per Extension
html66% (856 lines)
ts8% (255 lines)
js30% (143 lines)
Duplication per Component (primary)
app66% (856 lines)
src/loader40% (131 lines)
src/plugins9% (129 lines)
src/dispatch18% (126 lines)
ROOT10% (12 lines)
src/sessions0% (0 lines)
src/errors0% (0 lines)
src0% (0 lines)
src/utils0% (0 lines)
src/orchestration0% (0 lines)
src/event-cache0% (0 lines)
src/test-utils0% (0 lines)
src/remote-config0% (0 lines)
scripts0% (0 lines)

Duplication Between Components (50+ lines)

G app app src/loader src/loader app--src/loader 66

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 271 duplicates...
Size#FoldersFilesLinesCode
59 x 2 app
app
cookies_disabled.html
cookies_enabled.html
6:79 (92%)
6:79 (92%)
view
33 x 2 app
app
http_fetch_event.html
http_xhr_event.html
85:126 (33%)
113:154 (27%)
view
30 x 2 app
app
cookies_enabled.html
remote_config.html
13:49 (46%)
18:55 (42%)
view
30 x 2 app
app
ingestion.html
web_vital_event.html
315:351 (9%)
75:111 (33%)
view
30 x 2 app
app
cookies_disabled.html
remote_config.html
13:49 (46%)
18:55 (42%)
view
29 x 2 app
app
http_fetch_event.html
js_error_event.html
85:120 (29%)
87:122 (29%)
view
29 x 2 app
app
http_xhr_event.html
js_error_event.html
113:148 (24%)
87:122 (29%)
view
29 x 2 app
app
http_fetch_event.html
ingestion.html
85:120 (29%)
316:351 (9%)
view
29 x 2 app
app
http_xhr_event.html
web_vital_event.html
113:148 (24%)
76:111 (32%)
view
29 x 2 app
app
http_xhr_event.html
ingestion.html
113:148 (24%)
316:351 (9%)
view
29 x 2 app
app
js_error_event.html
web_vital_event.html
87:122 (29%)
76:111 (32%)
view
29 x 2 app
app
ingestion.html
js_error_event.html
316:351 (9%)
87:122 (29%)
view
29 x 2 app
app
http_fetch_event.html
web_vital_event.html
85:120 (29%)
76:111 (32%)
view
27 x 2 app
app
cookies_disabled.html
web_vital_event.html
46:79 (42%)
78:111 (30%)
view
27 x 2 app
app
cookies_disabled.html
dom_event.html
46:79 (42%)
61:94 (35%)
view
27 x 2 app
app
dom_event.html
ingestion.html
61:94 (35%)
318:351 (8%)
view
27 x 2 app
app
dom_event.html
http_xhr_event.html
61:94 (35%)
115:148 (22%)
view
27 x 2 app
app
cookies_disabled.html
js_error_event.html
46:79 (42%)
89:122 (27%)
view
27 x 2 app
app
cookies_enabled.html
js_error_event.html
46:79 (42%)
89:122 (27%)
view
27 x 2 app
app
cookies_enabled.html
http_xhr_event.html
46:79 (42%)
115:148 (22%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 src/dispatch
src/dispatch
Authentication.ts
EnhancedAuthentication.ts
140:148 
127:135 
view