microsoft / TailwindTraders-Rewards
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
  • 22% duplication:
    • 1,897 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 432 duplicated lines
  • 11 duplicates
system22% (432 lines)
Duplication per Extension
css63% (368 lines)
cs6% (64 lines)
Duplication per Component (primary)
Source/Website/Content76% (184 lines)
Source/Website/Content/styles53% (184 lines)
Source/Website/Data_Layer18% (52 lines)
Source/Function/Models10% (6 lines)
Source/Website/Models17% (6 lines)
Deploy0% (0 lines)
Source/Function0% (0 lines)
Source/Function/Extensions0% (0 lines)
Source/Website0% (0 lines)
Source/Website/Content/img0% (0 lines)
Source/Website/Properties0% (0 lines)

Duplication Between Components (50+ lines)

G Source/Website/Content Source/Website/Content Source/Website/Content/styles Source/Website/Content/styles Source/Website/Content--Source/Website/Content/styles 368

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
55 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
119:183 (22%)
136:200 (20%)
view
48 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
198:251 (19%)
219:269 (18%)
view
26 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
53:83 (10%)
63:93 (9%)
view
19 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
84:107 (7%)
95:118 (7%)
view
17 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
16:33 (7%)
23:42 (6%)
view
14 x 2 Source/Website/Data_Layer
Source/Website/Data_Layer
CustomerData.cs
CustomerData.cs
138:152 (8%)
185:199 (8%)
view
12 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
2:13 (4%)
2:16 (4%)
view
7 x 2 Source/Website/Content
Source/Website/Content/styles
Site.css
main.css
190:197 (2%)
210:217 (2%)
view
6 x 2 Source/Website/Data_Layer
Source/Website/Data_Layer
OrdersData.cs
OrdersData.cs
75:81 (6%)
106:112 (6%)
view
6 x 2 Source/Website/Data_Layer
Source/Website/Data_Layer
DataAccessHandler.cs
DataAccessHandler.cs
26:42 (20%)
59:75 (20%)
view
6 x 2 Source/Function/Models
Source/Website/Models
EnrollmentStatusEnum.cs
EnrollmentStatusEnum.cs
7:13 (85%)
3:9 (85%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 Source/Website
Source/Website
Login.aspx.cs
Login.aspx.cs
38:48 
50:60 
view