microsoft / Code-Search
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
  • 97% duplication:
    • 26,067 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 25,487 duplicated lines
  • 11,494 duplicates
system97% (25,487 lines)
Duplication per Extension
ps197% (14,565 lines)
psm197% (10,922 lines)
Duplication per Component (primary)
TFS_2018Update399% (4,497 lines)
Azure_DevOps_Server_201998% (4,466 lines)
TFS_2018Update299% (4,462 lines)
TFS_2018Update199% (3,971 lines)
TFS_2018RTW99% (3,903 lines)
TFS_2017Update3100% (1,336 lines)
TFS_2017Update2100% (1,197 lines)
TFS_2017Update187% (847 lines)
TFS_2017RTW92% (763 lines)
HealthCheck14% (45 lines)

Duplication Between Components (50+ lines)

G Azure_DevOps_Server_2019 Azure_DevOps_Server_2019 TFS_2018Update3 TFS_2018Update3 Azure_DevOps_Server_2019--TFS_2018Update3 8890 TFS_2018Update2 TFS_2018Update2 Azure_DevOps_Server_2019--TFS_2018Update2 8584 TFS_2018Update1 TFS_2018Update1 Azure_DevOps_Server_2019--TFS_2018Update1 7437 TFS_2018RTW TFS_2018RTW Azure_DevOps_Server_2019--TFS_2018RTW 7188 TFS_2017Update3 TFS_2017Update3 Azure_DevOps_Server_2019--TFS_2017Update3 2560 TFS_2017Update2 TFS_2017Update2 Azure_DevOps_Server_2019--TFS_2017Update2 2295 TFS_2017Update1 TFS_2017Update1 Azure_DevOps_Server_2019--TFS_2017Update1 1345 TFS_2017RTW TFS_2017RTW Azure_DevOps_Server_2019--TFS_2017RTW 1303 HealthCheck HealthCheck Azure_DevOps_Server_2019--HealthCheck 54 TFS_2018Update2--TFS_2018Update3 8664 TFS_2018RTW--TFS_2018Update1 7715 TFS_2018RTW--TFS_2018Update2 7542 TFS_2018RTW--TFS_2018Update3 7262 TFS_2018Update1--TFS_2018Update3 7523 TFS_2018Update1--TFS_2018Update2 7465 TFS_2017Update3--TFS_2018RTW 2690 TFS_2017Update3--TFS_2018Update1 2650 TFS_2017Update3--TFS_2018Update2 2606 TFS_2017Update3--TFS_2018Update3 2574 TFS_2017Update2--TFS_2018RTW 2423 TFS_2017Update2--TFS_2017Update3 2411 TFS_2017Update2--TFS_2018Update1 2383 TFS_2017Update2--TFS_2018Update2 2341 TFS_2017Update2--TFS_2018Update3 2309 TFS_2017RTW--TFS_2017Update1 1602 TFS_2017RTW--TFS_2018RTW 1384 TFS_2017RTW--TFS_2017Update3 1381 TFS_2017RTW--TFS_2017Update2 1380 TFS_2017RTW--TFS_2018Update1 1344 TFS_2017RTW--TFS_2018Update2 1334 TFS_2017RTW--TFS_2018Update3 1301 TFS_2017Update1--TFS_2018RTW 1424 TFS_2017Update1--TFS_2017Update3 1420 TFS_2017Update1--TFS_2017Update2 1417 TFS_2017Update1--TFS_2018Update1 1384 TFS_2017Update1--TFS_2018Update2 1375 TFS_2017Update1--TFS_2018Update3 1343 HealthCheck--TFS_2018Update1 56 HealthCheck--TFS_2017Update3 56 HealthCheck--TFS_2018RTW 56 HealthCheck--TFS_2018Update2 54 HealthCheck--TFS_2018Update3 54

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 11,494 duplicates...
Size#FoldersFilesLinesCode
639 x 2 TFS_2018Update2/Troubleshooting/Utils
TFS_2018Update3/Troubleshooting/Utils
Common.psm1
Common.psm1
308:1073 (71%)
321:1086 (70%)
view
571 x 2 TFS_2018RTW/Troubleshooting/Utils
TFS_2018Update1/Troubleshooting/Utils
Common.psm1
Common.psm1
331:1019 (66%)
344:1032 (66%)
view
448 x 2 Azure_DevOps_Server_2019/Troubleshooting/Utils
TFS_2018Update2/Troubleshooting/Utils
Common.psm1
Common.psm1
548:1086 (49%)
535:1073 (49%)
view
448 x 2 Azure_DevOps_Server_2019/Troubleshooting/Utils
TFS_2018Update3/Troubleshooting/Utils
Common.psm1
Common.psm1
548:1086 (49%)
548:1086 (49%)
view
280 x 2 Azure_DevOps_Server_2019/Troubleshooting/Utils
TFS_2018Update3/Troubleshooting/Utils
Common.psm1
Common.psm1
122:457 (30%)
122:457 (30%)
view
245 x 2 Azure_DevOps_Server_2019
TFS_2018Update2
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
1:289 (100%)
1:289 (100%)
view
233 x 2 TFS_2018Update2
TFS_2018Update3
ExtensionInstallIndexingStatus.ps1
ExtensionInstallIndexingStatus.ps1
1:270 (100%)
1:270 (100%)
view
233 x 2 Azure_DevOps_Server_2019
TFS_2018Update3
ExtensionInstallIndexingStatus.ps1
ExtensionInstallIndexingStatus.ps1
1:270 (100%)
1:270 (100%)
view
233 x 2 Azure_DevOps_Server_2019
TFS_2018Update2
ExtensionInstallIndexingStatus.ps1
ExtensionInstallIndexingStatus.ps1
1:270 (100%)
1:270 (100%)
view
232 x 2 Azure_DevOps_Server_2019
TFS_2018Update3
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
19:289 (94%)
19:289 (94%)
view
232 x 2 TFS_2018Update2
TFS_2018Update3
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
19:289 (94%)
19:289 (94%)
view
192 x 2 TFS_2018Update1/Troubleshooting/Utils
TFS_2018Update2/Troubleshooting/Utils
Common.psm1
Common.psm1
545:781 (22%)
574:810 (21%)
view
192 x 2 Azure_DevOps_Server_2019/Troubleshooting/Utils
TFS_2018RTW/Troubleshooting/Utils
Common.psm1
Common.psm1
587:823 (21%)
532:768 (22%)
view
192 x 2 Azure_DevOps_Server_2019/Troubleshooting/Utils
TFS_2018Update1/Troubleshooting/Utils
Common.psm1
Common.psm1
587:823 (21%)
545:781 (22%)
view
192 x 2 TFS_2018RTW/Troubleshooting/Utils
TFS_2018Update3/Troubleshooting/Utils
Common.psm1
Common.psm1
532:768 (22%)
587:823 (21%)
view
192 x 2 TFS_2018Update1/Troubleshooting/Utils
TFS_2018Update3/Troubleshooting/Utils
Common.psm1
Common.psm1
545:781 (22%)
587:823 (21%)
view
192 x 2 TFS_2018RTW/Troubleshooting/Utils
TFS_2018Update2/Troubleshooting/Utils
Common.psm1
Common.psm1
532:768 (22%)
574:810 (21%)
view
191 x 2 TFS_2017Update2
TFS_2018Update1
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
1:227 (100%)
1:227 (100%)
view
191 x 2 TFS_2017Update2
TFS_2017Update3
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
1:227 (100%)
1:227 (100%)
view
191 x 2 TFS_2017Update2
TFS_2018RTW
RecentIndexingActivity.ps1
RecentIndexingActivity.ps1
1:227 (100%)
1:227 (100%)
view