microsoft / StoreBroker
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
  • 31% duplication:
    • 14,901 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,762 duplicated lines
  • 1,435 duplicates
system31% (4,762 lines)
Duplication per Extension
ps136% (4,405 lines)
psm116% (323 lines)
cscfg70% (34 lines)
Duplication per Component (primary)
StoreBroker31% (3,889 lines)
Extensions45% (839 lines)
AzureService16% (34 lines)
RESTProxy/App_Start0% (0 lines)
RESTProxy/Controllers0% (0 lines)
RESTProxy0% (0 lines)
RESTProxy/Models0% (0 lines)
RESTProxy/Properties0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,435 duplicates...
Size#FoldersFilesLinesCode
66 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
734:811 (2%)
997:1074 (2%)
view
53 x 2 Extensions
Extensions
ConvertFrom-ExistingIapSubmission.ps1
ConvertFrom-ExistingSubmission.ps1
109:173 (10%)
136:200 (4%)
view
43 x 2 StoreBroker
StoreBroker
StoreIngestionApplicationApi.ps1
StoreIngestionFlightingApi.ps1
1524:1572 (2%)
1592:1640 (2%)
view
38 x 2 Extensions
Extensions
ConvertFrom-ExistingIapSubmission.ps1
ConvertFrom-ExistingSubmission.ps1
428:477 (7%)
1432:1482 (2%)
view
36 x 2 StoreBroker
StoreBroker
StoreIngestionApplicationApi.ps1
StoreIngestionIapApi.ps1
1679:1721 (1%)
1635:1676 (2%)
view
35 x 2 StoreBroker
StoreBroker
StoreIngestionApplicationApi.ps1
StoreIngestionFlightingApi.ps1
963:1005 (1%)
1119:1161 (1%)
view
33 x 2 Extensions
Extensions
ConvertFrom-ExistingIapSubmission.ps1
ConvertFrom-ExistingSubmission.ps1
173:215 (6%)
292:334 (2%)
view
32 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1347:1383 (1%)
1439:1475 (1%)
view
31 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
2782:2816 (<1%)
2918:2952 (<1%)
view
25 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
3519:3550 (<1%)
3789:3820 (<1%)
view
25 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1310:1341 (<1%)
1704:1735 (<1%)
view
25 x 2 Extensions
Extensions
ConvertFrom-ExistingIapSubmission.ps1
ConvertFrom-ExistingSubmission.ps1
74:104 (4%)
72:102 (1%)
view
23 x 2 StoreBroker
StoreBroker
StoreIngestionApplicationApi.ps1
StoreIngestionFlightingApi.ps1
1686:1712 (1%)
1663:1689 (1%)
view
23 x 2 StoreBroker
StoreBroker
StoreIngestionFlightingApi.ps1
StoreIngestionIapApi.ps1
1663:1689 (1%)
1641:1667 (1%)
view
22 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1350:1375 (<1%)
1744:1769 (<1%)
view
22 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1313:1340 (<1%)
1406:1433 (<1%)
view
22 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1442:1467 (<1%)
1744:1769 (<1%)
view
22 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1406:1433 (<1%)
1707:1734 (<1%)
view
21 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
772:797 (<1%)
1570:1595 (<1%)
view
21 x 2 StoreBroker
StoreBroker
PackageTool.ps1
PackageTool.ps1
1035:1060 (<1%)
1570:1595 (<1%)
view