aws-samples / startup-kit-templates
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
  • 66% duplication:
    • 5,732 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,793 duplicated lines
  • 383 duplicates
system66% (3,793 lines)
Duplication per Extension
yml66% (3,793 lines)
Duplication per Component (primary)
ROOT93% (2,023 lines)
templates49% (1,770 lines)

Duplication Between Components (50+ lines)

G templates templates ROOT ROOT templates--ROOT 1432

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 383 duplicates...
Size#FoldersFilesLinesCode
204 x 2 ROOT
ROOT
vpc-bastion-fargate-rds-elasticache.c...
vpc-bastion-fargate-rds.cfn.yml
166:399 (60%)
165:398 (31%)
view
102 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate-rds-elasticache.c...
155:266 (20%)
250:361 (30%)
view
102 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate-rds.cfn.yml
155:266 (20%)
249:360 (15%)
view
86 x 2 ROOT
ROOT
vpc-bastion-fargate-rds.cfn.yml
vpc-bastion-fargate.cfn.yml
439:524 (13%)
267:352 (21%)
view
74 x 2 templates
templates
fargate-service.cfn.yml
fargate.cfn.yml
299:373 (9%)
319:393 (8%)
view
73 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate-rds.cfn.yml
434:514 (14%)
585:665 (11%)
view
71 x 2 ROOT
ROOT
vpc-bastion-fargate-rds-elasticache.c...
vpc-bastion-fargate-rds.cfn.yml
55:137 (21%)
54:136 (10%)
view
70 x 2 ROOT
ROOT
vpc-bastion-fargate-rds.cfn.yml
vpc-bastion-fargate.cfn.yml
114:197 (10%)
84:167 (17%)
view
68 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate-rds.cfn.yml
274:347 (13%)
370:444 (10%)
view
60 x 2 ROOT
ROOT
vpc-bastion-fargate-rds.cfn.yml
vpc-bastion-fargate.cfn.yml
8:82 (9%)
8:82 (14%)
view
49 x 2 templates
templates
fargate-service.cfn.yml
fargate.cfn.yml
438:486 (6%)
461:509 (5%)
view
48 x 2 ROOT
ROOT
vpc-bastion-fargate-rds.cfn.yml
vpc-bastion.cfn.yml
8:67 (7%)
8:65 (34%)
view
48 x 2 ROOT
ROOT
vpc-bastion-fargate.cfn.yml
vpc-bastion.cfn.yml
8:67 (11%)
8:65 (34%)
view
47 x 2 templates
templates
fargate-service.cfn.yml
fargate.cfn.yml
378:424 (6%)
399:445 (5%)
view
43 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion.cfn.yml
25:76 (8%)
15:65 (30%)
view
43 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate.cfn.yml
25:76 (8%)
16:67 (10%)
view
43 x 2 ROOT
ROOT
vpc-bastion-eb-rds.cfn.yml
vpc-bastion-fargate-rds.cfn.yml
25:76 (8%)
16:67 (6%)
view
43 x 2 templates
templates
fargate-service.cfn.yml
fargate.cfn.yml
219:262 (5%)
240:283 (4%)
view
42 x 2 ROOT
ROOT
vpc-bastion-fargate-rds-elasticache.c...
vpc-bastion-fargate.cfn.yml
200:247 (12%)
169:216 (10%)
view
42 x 2 ROOT
ROOT
vpc-bastion-fargate-rds.cfn.yml
vpc-bastion-fargate.cfn.yml
199:246 (6%)
169:216 (10%)
view