aws-samples / legacy-cycle-store-mvc-app
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:
    • 1,878 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 152 duplicated lines
  • 4 duplicates
system8% (152 lines)
Duplication per Extension
css8% (128 lines)
cs7% (12 lines)
cshtml17% (12 lines)
Duplication per Component (primary)
AdventureWorksMVC/css8% (128 lines)
AdventureWorksMVC/Business13% (12 lines)
AdventureWorksMVC/Views17% (12 lines)
ROOT0% (0 lines)
AdventureWorksMVC/Properties0% (0 lines)
AdventureWorksMVC0% (0 lines)
AdventureWorksMVC/App_Start0% (0 lines)
AdventureWorksMVC/Helpers0% (0 lines)
AdventureWorksMVC/Controllers0% (0 lines)
AdventureWorksMVC/Models0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
56 x 2 AdventureWorksMVC/css
AdventureWorksMVC/css
StyleSheet.css
StyleSheet.css
2:75 (3%)
86:156 (3%)
view
8 x 2 AdventureWorksMVC/css
AdventureWorksMVC/css
StyleSheet.css
StyleSheet.css
1093:1100 (<1%)
1109:1116 (<1%)
view
6 x 2 AdventureWorksMVC/Views/Error
AdventureWorksMVC/Views/Home
cshtml
Default.cshtml
Default.cshtml
1:7 (85%)
1:7 (66%)
view
6 x 2 AdventureWorksMVC/Business
AdventureWorksMVC/Business
ProductManager.cs
ProductManager.cs
100:105 (9%)
112:117 (9%)
view