aws-samples / aws-modernization-with-bridgecrew
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
  • 98% duplication:
    • 9,372 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 9,274 duplicated lines
  • 351 duplicates
system98% (9,274 lines)
Duplication per Extension
css100% (6,816 lines)
html97% (1,248 lines)
toml95% (636 lines)
yaml99% (550 lines)
yml42% (24 lines)
Duplication per Component (primary)
terraform-workshop/themes99% (4,186 lines)
themes/hugo-theme-learn99% (4,186 lines)
pipeline/webhosting99% (275 lines)
terraform-workshop/pipeline99% (275 lines)
static/css100% (127 lines)
terraform-workshop/static100% (127 lines)
terraform-workshop85% (49 lines)
ROOT48% (49 lines)
terraform-workshop/layouts0% (0 lines)
layouts/partials0% (0 lines)

Duplication Between Components (50+ lines)

G terraform-workshop/themes terraform-workshop/themes themes/hugo-theme-learn themes/hugo-theme-learn terraform-workshop/themes--themes/hugo-theme-learn 8372 pipeline/webhosting pipeline/webhosting terraform-workshop/pipeline terraform-workshop/pipeline pipeline/webhosting--terraform-workshop/pipeline 550 terraform-workshop/static terraform-workshop/static terraform-workshop/static--terraform-workshop/themes 344 terraform-workshop/static--themes/hugo-theme-learn 344 static/css static/css static/css--terraform-workshop/themes 344 static/css--themes/hugo-theme-learn 344 static/css--terraform-workshop/static 254 ROOT ROOT terraform-workshop terraform-workshop ROOT--terraform-workshop 98

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 351 duplicates...
Size#FoldersFilesLinesCode
1107 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme.css
theme.css
1:1136 (100%)
1:1136 (100%)
view
522 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
1:615 (100%)
1:615 (100%)
view
340 x 2 terraform-workshop/theme...me-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.forest.css
mermaid.forest.css
4:356 (100%)
4:356 (100%)
view
262 x 2 terraform-workshop/theme...me-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.dark.css
mermaid.dark.css
4:278 (100%)
4:278 (100%)
view
260 x 2 terraform-workshop/theme...me-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.css
4:276 (100%)
4:276 (100%)
view
212 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
hugo-theme.css
hugo-theme.css
6:254 (100%)
6:254 (100%)
view
169 x 2 pipeline/webhosting
terraform-workshop/pipeline/webhosting
pipeline.yaml
pipeline.yaml
19:194 (93%)
19:194 (93%)
view
127 x 2 static/css
terraform-workshop/static/css
theme-mine.css
theme-mine.css
2:154 (100%)
2:154 (100%)
view
119 x 2 terraform-workshop/theme...-learn/layouts/partials
themes/hugo-theme-learn/layouts/partials
menu.html
menu.html
1:151 (100%)
1:151 (100%)
view
96 x 2 pipeline/webhosting
terraform-workshop/pipeline/webhosting
cloudfront-s3-website.yaml
cloudfront-s3-website.yaml
1:101 (100%)
1:101 (100%)
view
95 x 2 terraform-workshop/theme...-learn/layouts/partials
themes/hugo-theme-learn/layouts/partials
header.html
header.html
1:111 (100%)
1:111 (100%)
view
90 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-blue.css
2:111 (100%)
2:111 (100%)
view
90 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-green.css
theme-green.css
2:111 (100%)
2:111 (100%)
view
90 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-red.css
theme-red.css
2:111 (100%)
2:111 (100%)
view
84 x 2 terraform-workshop/theme...-theme-learn/static/css
themes/hugo-theme-learn/exampleSite/static/css
theme-green.css
theme-mine.css
2:103 (93%)
2:103 (100%)
view
84 x 2 terraform-workshop/theme.../exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view
84 x 2 terraform-workshop/theme.../exampleSite/static/css
themes/hugo-theme-learn/exampleSite/static/css
theme-mine.css
theme-mine.css
2:103 (100%)
2:103 (100%)
view
84 x 2 terraform-workshop/theme...earn/layouts/shortcodes
themes/hugo-theme-learn/layouts/shortcodes
children.html
children.html
1:101 (100%)
1:101 (100%)
view
84 x 2 terraform-workshop/theme.../exampleSite/static/css
terraform-workshop/theme...-theme-learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view
84 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view