aws-samples / application-migration-with-aws-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
  • 29% duplication:
    • 5,538 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,619 duplicated lines
  • 160 duplicates
system29% (1,619 lines)
Duplication per Extension
css32% (1,131 lines)
yml44% (448 lines)
html7% (40 lines)
Duplication per Component (primary)
workshop/themes/learn/static32% (1,131 lines)
resources45% (448 lines)
workshop/themes/learn/layouts7% (40 lines)
workshop0% (0 lines)
workshop/layouts/partials0% (0 lines)
workshop/themes/learn0% (0 lines)
workshop/themes/learn/i18n0% (0 lines)
resources/src/create_key_pair0% (0 lines)
resources/src/get_ssh_key_from_ssm0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 160 duplicates...
Size#FoldersFilesLinesCode
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-green.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
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
34 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
hugo-theme.css
theme-aws.css
83:121 (16%)
235:273 (11%)
view
34 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-red.css
120:154 (11%)
56:90 (36%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-green.css
120:154 (11%)
56:90 (36%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-blue.css
120:154 (11%)
56:90 (36%)
view
31 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
33:63 (11%)
35:65 (9%)
view
29 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
224:252 (11%)
226:254 (8%)
view
22 x 2 resources
resources
cloudformation.yml
cloudformation.yml
314:335 (2%)
369:390 (2%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
446:462 (1%)
554:570 (1%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
446:462 (1%)
590:606 (1%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
410:426 (1%)
518:534 (1%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
482:498 (1%)
518:534 (1%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
410:426 (1%)
482:498 (1%)
view
17 x 2 resources
resources
cloudformation.yml
cloudformation.yml
554:570 (1%)
590:606 (1%)
view
16 x 2 resources
resources
cloudformation.yml
cloudformation.yml
572:587 (1%)
608:623 (1%)
view
16 x 2 resources
resources
cloudformation.yml
cloudformation.yml
500:515 (1%)
536:551 (1%)
view