aws-samples / aws-modernization-hub
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
  • 8% duplication:
    • 4,809 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 425 duplicated lines
  • 63 duplicates
system8% (425 lines)
Duplication per Extension
js7% (254 lines)
html50% (127 lines)
yaml8% (28 lines)
css2% (16 lines)
Duplication per Component (primary)
themes/aws-modernize/static/bootstrap/js7% (254 lines)
themes/aws-modernize/layouts/_default78% (92 lines)
themes/aws-modernize/layouts79% (35 lines)
cfn/webhosting8% (28 lines)
themes/aws-modernize/static/css2% (16 lines)
ROOT0% (0 lines)
themes/aws-modernize0% (0 lines)
themes/aws-modernize/layouts/partials0% (0 lines)

Duplication Between Components (50+ lines)

G themes/aws-modernize/layouts/_default themes/aws-modernize/layouts/_default themes/aws-modernize/layouts themes/aws-modernize/layouts themes/aws-modernize/layouts/_default--themes/aws-modernize/layouts 111

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 63 duplicates...
Size#FoldersFilesLinesCode
34 x 2 themes/aws-modernize/layouts/_default
themes/aws-modernize/layouts/_default
list.html
single.html
24:78 (72%)
23:86 (75%)
view
28 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
5483:5517 (<1%)
5675:5710 (<1%)
view
13 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
4932:4944 (<1%)
5574:5592 (<1%)
view
10 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
5223:5235 (<1%)
5608:5620 (<1%)
view
9 x 2 themes/aws-modernize/layouts/_default
themes/aws-modernize/layouts
list.html
index.html
62:88 (19%)
56:81 (20%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
4248:4257 (<1%)
5675:5685 (<1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
1345:1354 (<1%)
5997:6006 (<1%)
view
8 x 2 cfn/webhosting
cfn/webhosting
pipeline.yaml
pipeline.yaml
31:38 (4%)
67:74 (4%)
view
8 x 2 themes/aws-modernize/static/css
themes/aws-modernize/static/css
site.css
site.css
46:53 (1%)
272:279 (1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
4248:4257 (<1%)
5483:5492 (<1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
4806:4815 (<1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
4806:4815 (<1%)
5997:6006 (<1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
1345:1354 (<1%)
4806:4815 (<1%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
5997:6006 (<1%)
view
8 x 2 themes/aws-modernize/layouts/_default
themes/aws-modernize/layouts
single.html
index.html
61:86 (17%)
56:72 (18%)
view
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
1345:1354 (<1%)
view
8 x 2 themes/aws-modernize/layouts/_default
themes/aws-modernize/layouts/_default
list.html
single.html
1:14 (17%)
1:14 (17%)
view
7 x 2 themes/aws-modernize/layouts/_default
themes/aws-modernize/layouts
single.html
index.html
41:48 (15%)
40:47 (16%)
view
7 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
4248:4255 (<1%)
4806:4813 (<1%)
view
7 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
5675:5683 (<1%)
5997:6004 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 themes/aws-modernize/static/bootstrap/js
themes/aws-modernize/static/bootstrap/js
bootstrap.bundle.js
bootstrap.bundle.js
14:22 
1744:1752 
view