aws-samples / disaster-recovery-workshop
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
  • 16% duplication:
    • 3,181 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 519 duplicated lines
  • 31 duplicates
system16% (519 lines)
Duplication per Extension
css15% (356 lines)
yaml43% (145 lines)
html5% (18 lines)
Duplication per Component (primary)
workshop/static/css15% (356 lines)
workshop/content/labs/basics/api-gateway/code43% (74 lines)
workshop/content/labs/basics/route53/code43% (71 lines)
workshop/layouts/shortcodes14% (18 lines)
workshop0% (0 lines)
workshop/layouts/_default0% (0 lines)
workshop/layouts/_default/_markup0% (0 lines)
workshop/layouts/partials0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G workshop/content/labs/basics/api-gateway/code workshop/content/labs/basics/api-gateway/code workshop/content/labs/basics/route53/code workshop/content/labs/basics/route53/code workshop/content/labs/basics/api-gateway/code--workshop/content/labs/basics/route53/code 135

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 31 duplicates...
Size#FoldersFilesLinesCode
34 x 2 workshop/static/css
workshop/static/css
hugo-theme.css
theme-aws.css
83:121 (16%)
252:290 (13%)
view
33 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
31:66 (19%)
31:66 (20%)
view
23 x 2 workshop/static/css
workshop/static/css
theme-aws.css
theme.css
50:73 (8%)
679:701 (2%)
view
10 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
167:177 (5%)
164:174 (6%)
view
8 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
170:177 (4%)
131:138 (4%)
view
8 x 2 workshop/content/labs/basics/route53/code
workshop/content/labs/basics/route53/code
route53-vpc-cfn-template.yaml
route53-vpc-cfn-template.yaml
131:138 (4%)
167:174 (4%)
view
7 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
102:108 (4%)
92:98 (4%)
view
7 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
125:131 (4%)
100:106 (4%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
289:295 (1%)
389:395 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
325:331 (1%)
425:431 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
271:277 (1%)
371:377 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
theme.css
theme.css
488:494 (<1%)
555:561 (<1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
307:313 (1%)
407:413 (1%)
view
7 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/api-gateway/code
apigw-api-cfn-template.yaml
apigw-api-cfn-template.yaml
146:152 (4%)
158:164 (4%)
view
7 x 2 workshop/static/css
workshop/static/css
atom-one-dark-reasonable.css
hybrid.css
68:74 (10%)
94:102 (9%)
view
7 x 2 workshop/content/labs/basics/api-gateway/code
workshop/content/labs/basics/route53/code
apigw-api-cfn-template.yaml
route53-vpc-cfn-template.yaml
149:155 (4%)
158:164 (4%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
298:304 (1%)
398:404 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
253:259 (1%)
353:359 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
230:236 (1%)
244:250 (1%)
view
7 x 2 workshop/static/css
workshop/static/css
nucleus.css
nucleus.css
334:340 (1%)
434:440 (1%)
view