aws-samples / aws-serverless-application-catalog-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
  • 21% duplication:
    • 8,322 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,803 duplicated lines
  • 147 duplicates
system21% (1,803 lines)
Duplication per Extension
css23% (1,438 lines)
yaml37% (215 lines)
html11% (92 lines)
js37% (35 lines)
yml15% (23 lines)
Duplication per Component (primary)
workshop/themes/learn/static32% (1,045 lines)
workshop/static/css10% (309 lines)
code39% (180 lines)
workshop/themes/learn/exampleSite45% (110 lines)
code/sam/nodejs30% (58 lines)
workshop/themes/learn/layouts7% (40 lines)
code/sam/nodejs/src38% (35 lines)
workshop/layouts/shortcodes25% (26 lines)
workshop0% (0 lines)
workshop/static0% (0 lines)
workshop/layouts/partials0% (0 lines)
workshop/themes/learn0% (0 lines)
workshop/themes/learn/i18n0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G workshop/static/css workshop/static/css workshop/themes/learn/static workshop/themes/learn/static workshop/static/css--workshop/themes/learn/static 430 workshop/themes/learn/exampleSite workshop/themes/learn/exampleSite workshop/static/css--workshop/themes/learn/exampleSite 190 workshop/themes/learn/exampleSite--workshop/themes/learn/static 304 workshop/layouts/shortcodes workshop/layouts/shortcodes workshop/layouts/shortcodes--workshop/themes/learn/exampleSite 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 147 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
77 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-blue.css
19:111 (49%)
19:111 (85%)
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/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-green.css
27:111 (45%)
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
71 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-mine.css
theme-red.css
27:111 (45%)
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/static/css
workshop/themes/learn/exampleSite/static/css
theme-mine.css
theme-mine.css
27:103 (41%)
27:103 (77%)
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
43 x 2 workshop/static/css
workshop/static/css
theme-aws.css
theme-mine.css
185:237 (17%)
111:162 (27%)
view
34 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-aws.css
hugo-theme.css
237:275 (13%)
83:121 (16%)
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/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-green.css
122:156 (13%)
56:90 (36%)
view
33 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-red.css
122:156 (13%)
56:90 (36%)
view
33 x 2 workshop/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-blue.css
122:156 (13%)
56:90 (36%)
view
33 x 2 workshop/static/css
workshop/static/css
theme-aws.css
theme-mine.css
122:156 (13%)
56:90 (21%)
view
33 x 2 workshop/static/css
workshop/themes/learn/exampleSite/static/css
theme-aws.css
theme-mine.css
122:156 (13%)
56:90 (39%)
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