aws-samples / amazon-eks-and-amazon-ec2-k8s-container-networking-workshops
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
  • 24% duplication:
    • 9,675 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,345 duplicated lines
  • 130 duplicates
system24% (2,345 lines)
Duplication per Extension
css19% (1,179 lines)
yml46% (652 lines)
html34% (323 lines)
yaml18% (191 lines)
Duplication per Component (primary)
themes/learn30% (1,271 lines)
templates46% (716 lines)
templates/eksConfigFiles18% (127 lines)
static/css3% (84 lines)
layouts/partials53% (84 lines)
layouts90% (37 lines)
layouts/shortcodes26% (26 lines)
templates/kopsConfigFiles0% (0 lines)
static/yaml0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G static/css static/css themes/learn themes/learn static/css--themes/learn 344 layouts/partials layouts/partials layouts/partials--themes/learn 174 layouts layouts layouts--themes/learn 74 layouts/shortcodes layouts/shortcodes layouts/shortcodes--themes/learn 52

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 130 duplicates...
Size#FoldersFilesLinesCode
84 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view
71 x 2 themes/learn/static/css
themes/learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 themes/learn/static/css
themes/learn/static/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 themes/learn/static/css
themes/learn/static/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
65 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-red.css
27:103 (77%)
27:103 (72%)
view
65 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-blue.css
27:103 (77%)
27:103 (72%)
view
63 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
59 x 2 templates
templates
amazon-eks-nodegroup-with-spot.yml
amazon-eks-nodegroup-with-spot.yml
37:95 (11%)
159:217 (11%)
view
57 x 2 templates
templates
amazon-eks-nodegroup-with-spot.yml
amazon-eks-nodegroup-with-spot.yml
100:156 (10%)
161:217 (10%)
view
57 x 2 templates
templates
amazon-eks-nodegroup-with-spot.yml
amazon-eks-nodegroup-with-spot.yml
39:95 (10%)
100:156 (10%)
view
50 x 2 templates
templates
amazon-eks-nodegroup-with-mixed-insta...
amazon-eks-nodegroup-with-spot.yml
77:126 (13%)
45:94 (9%)
view
50 x 2 templates
templates
amazon-eks-nodegroup-with-mixed-insta...
amazon-eks-nodegroup-with-spot.yml
77:126 (13%)
167:216 (9%)
view
50 x 2 templates
templates
amazon-eks-nodegroup-with-mixed-insta...
amazon-eks-nodegroup-with-spot.yml
77:126 (13%)
106:155 (9%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-blue.css
85:132 (28%)
56:103 (47%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-red.css
85:132 (28%)
56:103 (47%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-green.css
85:132 (28%)
56:103 (47%)
view
43 x 2 static/css
themes/learn/exampleSite/static/css
theme-mine.css
theme-mine.css
85:132 (28%)
56:103 (51%)
view
39 x 2 templates/eksConfigFiles
templates/eksConfigFiles
frontend-elb.yaml
frontend.yaml
1:39 (100%)
1:39 (100%)
view
34 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
33 x 2 templates
templates
ci-cd-codepipeline.cfn.yml
weave_flux_pipeline.cfn.yml
334:366 (9%)
206:238 (22%)
view