aws-samples / dotnet-modernization-music-store
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
  • 17% duplication:
    • 3,346 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 570 duplicated lines
  • 103 duplicates
system17% (570 lines)
Duplication per Extension
yml45% (512 lines)
cshtml17% (58 lines)
Duplication per Component (primary)
static45% (512 lines)
MvcMusicStore/Views/Account36% (40 lines)
MvcMusicStore/Views/ShoppingCart22% (18 lines)
MvcMusicStore/Properties0% (0 lines)
MvcMusicStore0% (0 lines)
MvcMusicStore/Content0% (0 lines)
MvcMusicStore/Content/themes0% (0 lines)
MvcMusicStore/Views0% (0 lines)
MvcMusicStore/Views/Shared0% (0 lines)
MvcMusicStore/Views/Store0% (0 lines)
MvcMusicStore/Views/Home0% (0 lines)
MvcMusicStore/Views/Checkout0% (0 lines)
MvcMusicStore/ViewModels0% (0 lines)
MvcMusicStore/Controllers0% (0 lines)
MvcMusicStore/Models0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 103 duplicates...
Size#FoldersFilesLinesCode
22 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
479:500 (1%)
534:555 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
575:591 (1%)
683:699 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
611:627 (1%)
719:735 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
575:591 (1%)
647:663 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
719:735 (1%)
755:771 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
611:627 (1%)
755:771 (1%)
view
17 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
647:663 (1%)
683:699 (1%)
view
16 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
737:752 (1%)
773:788 (1%)
view
16 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
665:680 (1%)
701:716 (1%)
view
12 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
373:384 (1%)
400:411 (1%)
view
12 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
593:604 (1%)
629:640 (1%)
view
11 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
701:711 (<1%)
773:783 (<1%)
view
11 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
665:675 (<1%)
773:783 (<1%)
view
11 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
809:819 (<1%)
854:864 (<1%)
view
11 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
665:675 (<1%)
737:747 (<1%)
view
11 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
701:711 (<1%)
737:747 (<1%)
view
10 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
961:970 (<1%)
973:982 (<1%)
view
10 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
70:79 (<1%)
651:660 (<1%)
view
10 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
253:262 (<1%)
264:273 (<1%)
view
10 x 2 static
static
app2container_demo_template.yml
app2container_demo_template.yml
70:79 (<1%)
687:696 (<1%)
view