aws-samples / aws-serverless-webapp-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
  • 23% duplication:
    • 6,237 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,495 duplicated lines
  • 89 duplicates
system23% (1,495 lines)
Duplication per Extension
css30% (1,226 lines)
js30% (172 lines)
vue7% (57 lines)
html6% (40 lines)
Duplication per Component (primary)
workshop/themes/learn/static32% (1,127 lines)
resources/code/WildRydesVue/public14% (108 lines)
workshop/themes/learn/exampleSite38% (84 lines)
workshop/content/StaticWebHosting100% (79 lines)
resources/code/WildRydesVue/src6% (57 lines)
workshop/themes/learn/layouts7% (40 lines)
workshop0% (0 lines)
workshop/content/ServerlessBackend/Lambda0% (0 lines)
workshop/themes/learn0% (0 lines)
workshop/themes/learn/i18n0% (0 lines)
resources/code/WildRydesVue0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G workshop/themes/learn/exampleSite workshop/themes/learn/exampleSite workshop/themes/learn/static workshop/themes/learn/static workshop/themes/learn/exampleSite--workshop/themes/learn/static 358 resources/code/WildRydesVue/public resources/code/WildRydesVue/public workshop/content/StaticWebHosting workshop/content/StaticWebHosting resources/code/WildRydesVue/public--workshop/content/StaticWebHosting 158 resources/code/WildRydesVue/src resources/code/WildRydesVue/src resources/code/WildRydesVue/public--resources/code/WildRydesVue/src 58

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 89 duplicates...
Size#FoldersFilesLinesCode
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
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
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
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
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
47 x 2 resources/code/WildRydesVue/public/js
workshop/content/StaticWebHosting
ride.js
ride.js
3:58 (55%)
6:61 (59%)
view
34 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
hugo-theme.css
theme-aws.css
83:121 (16%)
221:259 (14%)
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-green.css
106:140 (14%)
56:90 (36%)
view
33 x 2 workshop/themes/learn/exampleSite/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-aws.css
56:90 (39%)
106:140 (14%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-red.css
106:140 (14%)
56:90 (36%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-blue.css
106:140 (14%)
56:90 (36%)
view
32 x 2 resources/code/WildRydesVue/public/js
workshop/content/StaticWebHosting
ride.js
ride.js
64:112 (38%)
62:110 (40%)
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
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
252:270 (5%)
336:350 (4%)
view
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.dark.css
mermaid.forest.css
254:272 (5%)
336:350 (4%)
view
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.dark.css
252:270 (5%)
254:272 (5%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 workshop/content/StaticWebHosting
resources/code/WildRydesVue/public/js
ride.js
ride.js
21:42 
18:39 
view
14 x 2 workshop/content/StaticWebHosting
resources/code/WildRydesVue/public/js
ride.js
ride.js
88:105 
90:107 
view
13 x 2 workshop/content/StaticWebHosting
resources/code/WildRydesVue/public/js
ride.js
ride.js
44:57 
41:54 
view