microsoft / CSE-Telehealth-Samples
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
  • 6% duplication:
    • 6,396 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 417 duplicated lines
  • 22 duplicates
system6% (417 lines)
Duplication per Extension
html82% (198 lines)
js3% (94 lines)
css4% (73 lines)
cs2% (36 lines)
cshtml3% (16 lines)
Duplication per Component (primary)
API76% (99 lines)
WebPortal75% (99 lines)
WebPortal/Scripts3% (94 lines)
WebPortal/Content4% (73 lines)
WebPortal/Views3% (16 lines)
API/Controllers5% (12 lines)
API/ErrorHandler100% (8 lines)
WebPortal/ErrorHandler100% (8 lines)
SfB Trusted Application/ErrorHandler100% (8 lines)
API/App_Start0% (0 lines)
API/Content0% (0 lines)
API/Filters0% (0 lines)
API/Properties0% (0 lines)
API/Results0% (0 lines)
API/Scripts0% (0 lines)
API/Views0% (0 lines)
SfB Trusted Application/App_Start0% (0 lines)
SfB Trusted Application0% (0 lines)
SfB Trusted Application/Controllers0% (0 lines)
SfB Trusted Application/Job0% (0 lines)
SfB Trusted Application/Models0% (0 lines)
SfB Trusted Application/Properties0% (0 lines)
TrayListener0% (0 lines)
TrayListener/Properties0% (0 lines)
WebPortal/App_Start0% (0 lines)
WebPortal/Controllers0% (0 lines)
WebPortal/Models0% (0 lines)
WebPortal/Properties0% (0 lines)
WebPortal/SignalR0% (0 lines)

Duplication Between Components (50+ lines)

G API API WebPortal WebPortal API--WebPortal 198

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 22 duplicates...
Size#FoldersFilesLinesCode
87 x 2 API
WebPortal
Project_Readme.html
Project_Readme.html
1:106 (75%)
1:106 (74%)
view
12 x 2 API
WebPortal
Project_Readme.html
Project_Readme.html
127:144 (10%)
128:145 (10%)
view
11 x 2 WebPortal/Scripts
WebPortal/Scripts
multivideo.js
multivideo.js
422:434 (2%)
438:450 (2%)
view
9 x 2 WebPortal/Content
WebPortal/Content
Site.css
Site.css
269:277 (2%)
388:396 (2%)
view
9 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
214:222 (<1%)
268:276 (<1%)
view
9 x 2 WebPortal/Scripts
WebPortal/Scripts
skype.js
skype.js
35:43 (7%)
54:62 (7%)
view
8 x 2 API/ErrorHandler
SfB Trusted Application/ErrorHandler
AiHandleErrorAttribute.cs
AiHandleErrorAttribute.cs
10:24 (100%)
10:24 (100%)
view
8 x 2 WebPortal/Views/Launcher
WebPortal/Views/Launcher
cshtml
Desktop.cshtml
Virtual.cshtml
3:13 (57%)
3:13 (42%)
view
8 x 2 SfB Trusted Application/ErrorHandler
WebPortal/ErrorHandler
AiHandleErrorAttribute.cs
AiHandleErrorAttribute.cs
10:24 (100%)
10:24 (100%)
view
8 x 2 API/ErrorHandler
WebPortal/ErrorHandler
AiHandleErrorAttribute.cs
AiHandleErrorAttribute.cs
10:24 (100%)
10:24 (100%)
view
7 x 2 WebPortal/Scripts
WebPortal/Scripts
speedtest.js
speedtest.js
682:688 (<1%)
730:736 (<1%)
view
7 x 2 WebPortal/Scripts
WebPortal/Scripts
meeting.js
meeting.js
340:347 (2%)
371:378 (2%)
view
7 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
167:173 (<1%)
216:222 (<1%)
view
7 x 2 WebPortal/Scripts
WebPortal/Scripts
clinic.js
multivideo.js
4:10 (15%)
42:48 (1%)
view
7 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
167:173 (<1%)
270:276 (<1%)
view
6 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
167:172 (<1%)
367:372 (<1%)
view
6 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
270:275 (<1%)
367:372 (<1%)
view
6 x 2 WebPortal/Content
WebPortal/Content
skypestyle.css
skypestyle.css
216:221 (<1%)
367:372 (<1%)
view
6 x 2 WebPortal/Content
WebPortal/Content
Site.css
Site.css
22:29 (1%)
220:227 (1%)
view
6 x 2 WebPortal/Scripts
WebPortal/Scripts
devicetest.js
multivideo.js
126:131 (1%)
103:108 (1%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
11 x 3 API/ErrorHandler
SfB Trusted Application/ErrorHandler
WebPortal/ErrorHandler
AiHandleErrorAttribute.cs
AiHandleErrorAttribute.cs
AiHandleErrorAttribute.cs
13:25 
13:25 
13:25 
view
6 x 2 WebPortal/Scripts
WebPortal/Scripts
devicetest.js
devicetest.js
188:194 
196:202 
view
6 x 2 WebPortal/Scripts
WebPortal/Scripts
speedtest.js
speedtest.js
149:155 
455:461 
view
6 x 2 WebPortal/Scripts
WebPortal/Scripts
speedtest.js
speedtest.js
157:163 
165:171 
view