aws-solutions / multi-region-application-architecture
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
  • 38% duplication:
    • 2,525 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 971 duplicated lines
  • 141 duplicates
system38% (971 lines)
Duplication per Extension
ts63% (499 lines)
yaml37% (460 lines)
jsx5% (12 lines)
Duplication per Component (primary)
deployment37% (460 lines)
source/dynamodb-global-table-configurer/source83% (94 lines)
source/uuid-generator92% (92 lines)
source/presentation-configurer/source58% (90 lines)
source/stack-name-formatter83% (83 lines)
source/routing-configurer46% (83 lines)
source/stackset-output-consolidator48% (57 lines)
source/console/src2% (12 lines)
source/console/public0% (0 lines)
source/utils0% (0 lines)

Duplication Between Components (50+ lines)

G source/dynamodb-global-table-configurer/source source/dynamodb-global-table-configurer/source source/uuid-generator source/uuid-generator source/dynamodb-global-table-configurer/source--source/uuid-generator 184 source/presentation-configurer/source source/presentation-configurer/source source/dynamodb-global-table-configurer/source--source/presentation-configurer/source 174 source/stack-name-formatter source/stack-name-formatter source/dynamodb-global-table-configurer/source--source/stack-name-formatter 146 source/routing-configurer source/routing-configurer source/dynamodb-global-table-configurer/source--source/routing-configurer 148 source/stackset-output-consolidator source/stackset-output-consolidator source/dynamodb-global-table-configurer/source--source/stackset-output-consolidator 110 source/presentation-configurer/source--source/uuid-generator 170 source/presentation-configurer/source--source/stack-name-formatter 148 source/presentation-configurer/source--source/routing-configurer 140 source/presentation-configurer/source--source/stackset-output-consolidator 110 source/stack-name-formatter--source/uuid-generator 142 source/stack-name-formatter--source/stackset-output-consolidator 106 source/routing-configurer--source/uuid-generator 148 source/routing-configurer--source/stack-name-formatter 148 source/routing-configurer--source/stackset-output-consolidator 106 source/stackset-output-consolidator--source/uuid-generator 110

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 141 duplicates...
Size#FoldersFilesLinesCode
77 x 2 source/dynamodb-global-table-configurer/source
source/uuid-generator
index.ts
index.ts
32:140 (82%)
19:127 (92%)
view
58 x 2 source/dynamodb-global-table-configurer/source
source/presentation-configurer/source
index.ts
index.ts
40:114 (62%)
69:143 (48%)
view
58 x 2 source/presentation-configurer/source
source/uuid-generator
index.ts
index.ts
69:143 (48%)
27:101 (69%)
view
48 x 2 source/presentation-configurer/source
source/stack-name-formatter
index.ts
index.ts
98:166 (40%)
41:109 (58%)
view
48 x 2 source/routing-configurer
source/uuid-generator
state-updater.ts
index.ts
49:112 (34%)
42:105 (57%)
view
48 x 2 source/dynamodb-global-table-configurer/source
source/routing-configurer
index.ts
state-updater.ts
55:118 (51%)
49:112 (34%)
view
47 x 2 source/presentation-configurer/source
source/routing-configurer
index.ts
state-updater.ts
84:143 (39%)
49:108 (34%)
view
35 x 2 source/dynamodb-global-table-configurer/source
source/stack-name-formatter
index.ts
index.ts
69:114 (37%)
41:86 (42%)
view
35 x 2 source/stack-name-formatter
source/uuid-generator
index.ts
index.ts
41:86 (42%)
56:101 (42%)
view
35 x 2 source/routing-configurer
source/stack-name-formatter
state-updater.ts
index.ts
63:108 (25%)
41:86 (42%)
view
31 x 2 source/stackset-output-consolidator
source/uuid-generator
index.ts
index.ts
86:127 (31%)
67:108 (37%)
view
31 x 2 source/dynamodb-global-table-configurer/source
source/stackset-output-consolidator
index.ts
index.ts
80:121 (33%)
86:127 (31%)
view
30 x 2 source/routing-configurer
source/stackset-output-consolidator
state-updater.ts
index.ts
74:112 (21%)
86:124 (30%)
view
29 x 2 source/stack-name-formatter
source/stackset-output-consolidator
index.ts
index.ts
52:86 (35%)
86:120 (29%)
view
29 x 2 source/presentation-configurer/source
source/stackset-output-consolidator
index.ts
index.ts
109:143 (24%)
86:120 (29%)
view
24 x 2 deployment
deployment
multi-region-application-architecture...
multi-region-application-architecture...
252:275 (3%)
535:558 (3%)
view
20 x 2 deployment
deployment
multi-region-application-architecture...
multi-region-application-architecture...
150:169 (2%)
486:505 (2%)
view
20 x 2 deployment
deployment
multi-region-application-architecture...
multi-region-application-architecture...
282:301 (2%)
565:584 (2%)
view
19 x 2 deployment
deployment
multi-region-application-architecture...
multi-region-application-architecture...
207:225 (2%)
487:505 (2%)
view
19 x 2 deployment
deployment
multi-region-application-architecture...
multi-region-application-architecture...
151:169 (2%)
207:225 (2%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
21 x 4 source/presentation-configurer/source
source/uuid-generator
source/dynamodb-global-table-configurer/source
source/routing-configurer
index.ts
index.ts
index.ts
state-updater.ts
83:106 
41:64 
54:77 
48:71 
view
19 x 4 source/uuid-generator
source/dynamodb-global-table-configurer/source
source/routing-configurer
source/stackset-output-consolidator
index.ts
index.ts
state-updater.ts
index.ts
83:106 
96:119 
90:113 
102:125 
view
18 x 2 source/presentation-configurer/source
source/stack-name-formatter
index.ts
index.ts
125:147 
68:90 
view
14 x 6 source/presentation-configurer/source
source/uuid-generator
source/dynamodb-global-table-configurer/source
source/routing-configurer
source/stack-name-formatter
source/stackset-output-consolidator
index.ts
index.ts
index.ts
state-updater.ts
index.ts
index.ts
108:123 
66:81 
79:94 
73:88 
51:66 
85:100 
view
9 x 2 source/routing-configurer
source/stack-name-formatter
state-updater.ts
index.ts
172:182 
117:127 
view