aws-samples / aws-service-catalog-tools-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
  • 35% duplication:
    • 9,014 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,157 duplicated lines
  • 781 duplicates
system35% (3,157 lines)
Duplication per Extension
yaml89% (1,746 lines)
css19% (1,179 lines)
html20% (160 lines)
toml23% (72 lines)
Duplication per Component (primary)
themes/learn28% (1,203 lines)
content/every-day-use100% (766 lines)
content/40-reinvent201994% (625 lines)
ee_blueprint68% (355 lines)
static/css3% (84 lines)
layouts/partials55% (52 lines)
config/_default92% (24 lines)
config/development92% (24 lines)
config/ghpages85% (24 lines)
data0% (0 lines)
layouts/shortcodes0% (0 lines)

Duplication Between Components (50+ lines)

G content/40-reinvent2019 content/40-reinvent2019 content/every-day-use content/every-day-use content/40-reinvent2019--content/every-day-use 388 ee_blueprint ee_blueprint content/every-day-use--ee_blueprint 273 static/css static/css themes/learn themes/learn static/css--themes/learn 344 layouts/partials layouts/partials layouts/partials--themes/learn 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 781 duplicates...
Size#FoldersFilesLinesCode
91 x 2 workshop/content/every-d...ing-a-product/artefacts
workshop/content/every-d...ing-a-product/artefacts
product.template.yaml
product.template.yaml
1:96 (100%)
1:96 (100%)
view
91 x 2 workshop/content/every-d...ing-a-product/artefacts
workshop/ee_blueprint
product.template.yaml
enable_config.yaml
1:96 (100%)
1:96 (100%)
view
91 x 2 workshop/content/every-d...ing-a-product/artefacts
workshop/ee_blueprint
product.template.yaml
enable_config.yaml
1:96 (100%)
1:96 (100%)
view
84 x 2 workshop/themes/learn/exampleSite/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view
80 x 2 workshop/content/40-rein...19/150-task-2/artefacts
workshop/content/40-rein...19/150-task-2/artefacts
product_second_time.template.yaml
product_third_time.template.yaml
1:90 (78%)
1:90 (76%)
view
71 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
65 x 2 workshop/themes/learn/exampleSite/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-red.css
27:103 (77%)
27:103 (72%)
view
65 x 2 workshop/themes/learn/exampleSite/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-blue.css
27:103 (77%)
27:103 (72%)
view
63 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
56 x 2 workshop/ee_blueprint
workshop/ee_blueprint
servicecatalog-factory-initialiser.te...
servicecatalog-puppet-initialiser.tem...
90:149 (37%)
196:255 (23%)
view
52 x 2 workshop/content/40-rein...ask-2/artefacts/factory
workshop/content/40-rein...ask-2/artefacts/factory
completed.yaml
completed_second_time.yaml
1:53 (80%)
1:53 (52%)
view
43 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-blue.css
85:132 (34%)
56:103 (47%)
view
43 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-green.css
85:132 (34%)
56:103 (47%)
view
43 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-red.css
85:132 (34%)
56:103 (47%)
view
43 x 2 workshop/static/css
workshop/themes/learn/exampleSite/static/css
theme-mine.css
theme-mine.css
85:132 (34%)
56:103 (51%)
view
40 x 2 workshop/content/every-d...folio/artefacts/factory
workshop/content/every-d...oduct/artefacts/factory
completed.yaml
completed.yaml
1:40 (100%)
1:40 (100%)
view
40 x 2 workshop/content/every-d...folio/artefacts/factory
workshop/content/every-d...folio/artefacts/factory
completed.yaml
completed.yaml
1:40 (100%)
1:40 (100%)
view
40 x 2 workshop/content/every-d...folio/artefacts/factory
workshop/content/every-d...folio/artefacts/factory
completed.yaml
completed.yaml
1:40 (100%)
1:40 (100%)
view