amazon-connect / advanced-usage-analytics
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
  • 36% duplication:
    • 2,389 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 880 duplicated lines
  • 60 duplicates
system36% (880 lines)
Duplication per Extension
yaml39% (779 lines)
js25% (101 lines)
Duplication per Component (primary)
cloudformation39% (779 lines)
cloudformation/FrontendStackCustomResources93% (73 lines)
Frontend8% (28 lines)

Duplication Between Components (50+ lines)

G cloudformation/FrontendStackCustomResources cloudformation/FrontendStackCustomResources cloudformation cloudformation cloudformation/FrontendStackCustomResources--cloudformation 222

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 60 duplicates...
Size#FoldersFilesLinesCode
62 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
238:305 (17%)
286:353 (8%)
view
49 x 2 cloudformation/FrontendStackCustomResources
cloudformation
frontendgenerator.js
firehoseStack.yaml
4:54 (62%)
213:263 (13%)
view
36 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
168:205 (10%)
215:252 (5%)
view
35 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
124:158 (9%)
166:200 (4%)
view
24 x 2 cloudformation/FrontendStackCustomResources
cloudformation
frontendgenerator.js
frontend.yaml
29:54 (30%)
286:311 (3%)
view
20 x 2 cloudformation
cloudformation
chatusage.yaml
firehoseStack.yaml
73:92 (8%)
167:186 (5%)
view
20 x 2 cloudformation
cloudformation
frontend.yaml
mainStack.yaml
215:234 (2%)
105:124 (9%)
view
20 x 2 cloudformation
cloudformation
firehoseStack.yaml
mainStack.yaml
168:187 (5%)
105:124 (9%)
view
19 x 2 cloudformation
cloudformation
chatusage.yaml
mainStack.yaml
74:92 (7%)
105:123 (8%)
view
19 x 2 cloudformation
cloudformation
chatusage.yaml
frontend.yaml
74:92 (7%)
215:233 (2%)
view
19 x 2 cloudformation/FrontendStackCustomResources
cloudformation
frontendgenerator.js
frontend.yaml
9:27 (24%)
266:284 (2%)
view
19 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
218:236 (5%)
266:284 (2%)
view
17 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
107:123 (4%)
147:163 (2%)
view
17 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
40:58 (4%)
64:82 (2%)
view
14 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
337:353 (3%)
390:404 (1%)
view
13 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
81:94 (3%)
103:116 (1%)
view
13 x 2 cloudformation
cloudformation
backend.yaml
backend.yaml
136:148 (2%)
158:170 (2%)
view
12 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
21:32 (3%)
32:43 (1%)
view
11 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
68:79 (3%)
91:102 (1%)
view
11 x 2 cloudformation
cloudformation
firehoseStack.yaml
frontend.yaml
96:106 (3%)
118:128 (1%)
view