microsoft / Reporting-Services
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
  • 91% duplication:
    • 11,484 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 10,512 duplicated lines
  • 134 duplicates
system91% (10,512 lines)
Duplication per Extension
wsdl100% (9,532 lines)
cs65% (816 lines)
html39% (110 lines)
aspx100% (54 lines)
Duplication per Component (primary)
CustomSecuritySample/Web References/localhost100% (4,766 lines)
CustomSecuritySample2016/Web References/localhost100% (4,766 lines)
CustomSecuritySample63% (435 lines)
CustomSecuritySample201662% (435 lines)
Docs_14_037% (63 lines)
Docs47% (47 lines)
APISamples/powershell0% (0 lines)
APISamples/typescript/src0% (0 lines)

Duplication Between Components (50+ lines)

G CustomSecuritySample/Web References/localhost CustomSecuritySample/Web References/localhost CustomSecuritySample2016/Web References/localhost CustomSecuritySample2016/Web References/localhost CustomSecuritySample/Web References/localhost--CustomSecuritySample2016/Web References/localhost 9532 CustomSecuritySample CustomSecuritySample CustomSecuritySample2016 CustomSecuritySample2016 CustomSecuritySample--CustomSecuritySample2016 870 Docs Docs Docs_14_0 Docs_14_0 Docs--Docs_14_0 94

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 134 duplicates...
Size#FoldersFilesLinesCode
4766 x 2 CustomSecuritySample/Web References/localhost
CustomSecuritySample2016...sp;References/localhost
wsdl
ReportService2010.wsdl
ReportService2010.wsdl
1:6906 (100%)
1:6906 (100%)
view
165 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
1:386 (46%)
1:385 (36%)
view
119 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationUtilities.cs
AuthenticationUtilities.cs
1:223 (100%)
1:223 (100%)
view
58 x 2 CustomSecuritySample
CustomSecuritySample2016
Logon.aspx.cs
Logon.aspx.cs
1:140 (100%)
1:140 (100%)
view
40 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationExtension.cs
AuthenticationExtension.cs
57:177 (83%)
52:172 (88%)
view
27 x 2 CustomSecuritySample
CustomSecuritySample2016
aspx
Logon.aspx
Logon.aspx
1:28 (100%)
1:28 (100%)
view
18 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
677:710 (5%)
748:781 (4%)
view
15 x 2 Docs
Docs_14_0
Get-Started-With-RVC.html
Get-Started-With-RVC.html
40:55 (15%)
33:48 (17%)
view
10 x 2 Docs
Docs_14_0
Get-Started-With-RVC.html
Get-Started-With-RVC.html
58:67 (10%)
51:60 (11%)
view
8 x 2 Docs
Docs_14_0
Get-Started-With-RVC.html
Get-Started-With-RVC.html
85:92 (8%)
78:85 (9%)
view
8 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
438:454 (2%)
478:494 (1%)
view
8 x 2 Docs
Docs_14_0
Get-Started-With-RVC.html
Get-Started-With-RVC.html
1:9 (8%)
1:9 (9%)
view
8 x 2 Docs_14_0
Docs_14_0
Set-100Percent-Height-With-RVC.html
Set-100Percent-Height-With-RVC.html
24:31 (17%)
41:48 (17%)
view
7 x 2 CustomSecuritySample
CustomSecuritySample
Authorization.cs
Authorization.cs
296:304 (1%)
346:354 (1%)
view
7 x 2 CustomSecuritySample2016
CustomSecuritySample2016
Authorization.cs
Authorization.cs
295:303 (1%)
345:353 (1%)
view
7 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
173:183 (1%)
221:229 (1%)
view
7 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
173:183 (1%)
250:258 (1%)
view
7 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
251:259 (1%)
172:182 (1%)
view
7 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
251:259 (1%)
221:229 (1%)
view
7 x 2 CustomSecuritySample2016
CustomSecuritySample2016
Authorization.cs
Authorization.cs
189:202 (1%)
263:276 (1%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 22 unit duplicates...
Size#FoldersFilesLinesCode
36 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationUtilities.cs
AuthenticationUtilities.cs
114:159 
114:159 
view
34 x 2 CustomSecuritySample
CustomSecuritySample2016
Logon.aspx.cs
Logon.aspx.cs
102:142 
102:142 
view
31 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationUtilities.cs
AuthenticationUtilities.cs
74:109 
74:109 
view
29 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationExtension.cs
AuthenticationExtension.cs
146:178 
141:173 
view
24 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
215:241 
214:240 
view
24 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
244:271 
243:270 
view
24 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
289:316 
288:315 
view
24 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
339:366 
338:365 
view
23 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
75:110 
74:109 
view
23 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
112:147 
111:146 
view
23 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
162:197 
161:196 
view
23 x 2 CustomSecuritySample
CustomSecuritySample2016
Logon.aspx.cs
Logon.aspx.cs
75:99 
75:99 
view
22 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
678:702 
749:773 
view
15 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
319:336 
318:335 
view
12 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationExtension.cs
AuthenticationExtension.cs
93:114 
88:109 
view
12 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
200:212 
199:211 
view
12 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
274:286 
273:285 
view
12 x 2 CustomSecuritySample
CustomSecuritySample2016
Authorization.cs
Authorization.cs
443:455 
483:495 
view
9 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationUtilities.cs
AuthenticationUtilities.cs
48:57 
48:57 
view
8 x 2 CustomSecuritySample
CustomSecuritySample2016
AuthenticationExtension.cs
AuthenticationExtension.cs
117:127 
112:122 
view