microsoft / IgniteTheTour
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
  • 70% duplication:
    • 10,330 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 7,235 duplicated lines
  • 552 duplicates
system70% (7,235 lines)
Duplication per Extension
js84% (3,330 lines)
cs63% (1,765 lines)
css90% (991 lines)
yaml58% (418 lines)
html89% (310 lines)
Dockerfile100% (216 lines)
yml67% (80 lines)
tpl61% (63 lines)
ps119% (62 lines)
Duplication per Component (primary)
DEV - Building your Applications for the Cloud/DEV1081% (1,842 lines)
MIG - Migrating Applications to the Cloud/MIG5094% (1,757 lines)
MIG - Migrating Applications to the Cloud/MIG4094% (1,622 lines)
SRE - Operating applications and infrastructure in the cloud/SRE4093% (1,159 lines)
DEV - Building your Applications for the Cloud/DEV2096% (457 lines)
DEV - Building your Applications for the Cloud/DEV5029% (232 lines)
DAT - Getting the most out of your data/DAT3012% (104 lines)
HYB - Building and maintaining your Azure hybrid environment/HYB4031% (50 lines)
HYB - Building and maintaining your Azure hybrid environment/HYB3010% (12 lines)
DAT - Getting the most out of your data/DAT100% (0 lines)
DAT - Getting the most out of your data/DAT200% (0 lines)
FUN - Azure Fundamentals/FUN300% (0 lines)
MIG - Migrating Applications to the Cloud/MIG100% (0 lines)

Duplication Between Components (50+ lines)

G DEV - Building your Applications for the Cloud/DEV10 DEV - Building your Applications for the Cloud/DEV10 MIG - Migrating Applications to the Cloud/MIG40 MIG - Migrating Applications to the Cloud/MIG40 DEV - Building your Applications for the Cloud/DEV10--MIG - Migrating Applications to the Cloud/MIG40 3168 MIG - Migrating Applications to the Cloud/MIG50 MIG - Migrating Applications to the Cloud/MIG50 DEV - Building your Applications for the Cloud/DEV10--MIG - Migrating Applications to the Cloud/MIG50 2949 SRE - Operating applications and infrastructure in the cloud/SRE40 SRE - Operating applications and infrastructure in the cloud/SRE40 DEV - Building your Applications for the Cloud/DEV10--SRE - Operating applications and infrastructure in the cloud/SRE40 2261 DEV - Building your Applications for the Cloud/DEV20 DEV - Building your Applications for the Cloud/DEV20 DEV - Building your Applications for the Cloud/DEV10--DEV - Building your Applications for the Cloud/DEV20 833 MIG - Migrating Applications to the Cloud/MIG40--MIG - Migrating Applications to the Cloud/MIG50 2937 MIG - Migrating Applications to the Cloud/MIG40--SRE - Operating applications and infrastructure in the cloud/SRE40 2245 MIG - Migrating Applications to the Cloud/MIG50--SRE - Operating applications and infrastructure in the cloud/SRE40 2250 DEV - Building your Applications for the Cloud/DEV20--SRE - Operating applications and infrastructure in the cloud/SRE40 914 DEV - Building your Applications for the Cloud/DEV20--MIG - Migrating Applications to the Cloud/MIG50 833 DEV - Building your Applications for the Cloud/DEV20--MIG - Migrating Applications to the Cloud/MIG40 833

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 552 duplicates...
Size#FoldersFilesLinesCode
217 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
style.css
style.css
1:257 (100%)
1:257 (100%)
view
217 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG40/src/frontend/src
style.css
style.css
1:257 (100%)
1:257 (100%)
view
217 x 2 MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
style.css
style.css
1:257 (100%)
1:257 (100%)
view
170 x 2 DEV - Building...he Cloud/DEV20/src
SRE - Operatin.../setup/src/frontend/src
style.css
style.css
1:205 (100%)
1:203 (100%)
view
142 x 2 MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductTable.js
ProductTable.js
6:169 (100%)
6:169 (100%)
view
142 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG40/src/frontend/src
ProductTable.js
ProductTable.js
6:169 (100%)
6:169 (100%)
view
142 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductTable.js
ProductTable.js
6:169 (100%)
6:169 (100%)
view
128 x 2 MIG - Migratin.../MIG40/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building.../DEV10/src/frontend/src
DEV - Building...he Cloud/DEV20/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building...he Cloud/DEV20/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG50/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG40/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building.../DEV10/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG40/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
128 x 2 MIG - Migratin.../MIG50/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
3:141 (100%)
3:141 (100%)
view
124 x 2 MIG - Migratin.../MIG40/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
style.css
style.css
68:216 (57%)
55:203 (72%)
view
124 x 2 MIG - Migratin.../MIG50/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
style.css
style.css
68:216 (57%)
55:203 (72%)
view
124 x 2 DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG40/src/frontend/src
style.css
style.css
57:205 (72%)
68:216 (57%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 43 unit duplicates...
Size#FoldersFilesLinesCode
56 x 5 DEV - Building.../DEV10/src/frontend/src
DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
ProductDetails.js
ProductDetails.js
ProductDetails.js
38:138 
38:138 
38:138 
38:138 
38:138 
view
38 x 2 DEV - Building...he Cloud/DEV20/src
SRE - Operatin.../setup/src/frontend/src
ProductTable.js
ProductTable.js
99:159 
101:161 
view
42 x 3 DEV - Building...ce/InventoryService.Api
MIG - Migratin...ce/InventoryService.Api
MIG - Migratin...ce/InventoryService.Api
Startup.cs
Startup.cs
Startup.cs
32:76 
32:76 
32:76 
view
60 x 3 DEV - Building...src/product-service/src
MIG - Migratin...src/product-service/src
MIG - Migratin...src/product-service/src
index.js
index.js
index.js
59:128 
59:128 
66:135 
view
35 x 2 MIG - Migratin...ce/InventoryService.Api
MIG - Migratin...ce/InventoryService.Api
Program.cs
Program.cs
17:55 
17:55 
view
34 x 2 DEV - Building...yService.Api/Migrations
DEV - Building...yService.Api/Migrations
20181127231359_AddPayroll.Designer.cs
InventoryContextModelSnapshot.cs
16:64 
14:62 
view
32 x 3 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductTable.js
ProductTable.js
ProductTable.js
56:90 
56:90 
56:90 
view
44 x 3 DEV - Building...src/product-service/src
MIG - Migratin...src/product-service/src
MIG - Migratin...src/product-service/src
hapi-azure-key-vault.js
hapi-azure-key-vault.js
hapi-azure-key-vault.js
16:76 
16:76 
16:76 
view
27 x 3 DEV - Building...ce/InventoryService.Api
MIG - Migratin...ce/InventoryService.Api
MIG - Migratin...ce/InventoryService.Api
Startup.cs
Startup.cs
Startup.cs
78:108 
78:108 
78:108 
view
25 x 7 DEV - Building...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
SRE - Operatin...yService.Api/Migrations
SRE - Operatin...yService.Api/Migrations
20181102180834_AddModifiedColumn.Desi...
20181102180834_AddModifiedColumn.Desi...
InventoryContextModelSnapshot.cs
20181102180834_AddModifiedColumn.Desi...
InventoryContextModelSnapshot.cs
20181102180834_AddModifiedColumn.Desi...
InventoryContextModelSnapshot.cs
16:50 
16:50 
14:48 
16:50 
14:48 
16:50 
14:48 
view
24 x 4 DEV - Building...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
SRE - Operatin...yService.Api/Migrations
20181101063039_AddSecretUsers.Designe...
20181101063039_AddSecretUsers.Designe...
20181101063039_AddSecretUsers.Designe...
20181101063039_AddSecretUsers.Designe...
15:47 
15:47 
15:47 
15:47 
view
24 x 2 DEV - Building...erServerless/DataAccess
DEV - Building...rServerless/_DataAccess
InventoryInitializer.cs
InventoryInitializer.cs
73:97 
73:97 
view
22 x 3 DEV - Building.../DEV10/src/frontend/src
MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
ProductTable.js
ProductTable.js
ProductTable.js
29:55 
29:55 
29:55 
view
20 x 3 DEV - Building...oryService.Api/Services
MIG - Migratin...oryService.Api/Services
MIG - Migratin...oryService.Api/Services
SqlInventoryData.cs
SqlInventoryData.cs
SqlInventoryData.cs
46:66 
46:66 
46:66 
view
19 x 3 MIG - Migratin...oryService.Api/Services
MIG - Migratin...oryService.Api/Services
SRE - Operatin...oryService.Api/Services
BadSqlInventoryData.cs
BadSqlInventoryData.cs
BadSqlInventoryData.cs
16:42 
16:42 
16:42 
view
17 x 5 DEV - Building.../DEV10/src/frontend/src
DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductDetails.js
ProductDetails.js
ProductDetails.js
ProductDetails.js
ProductDetails.js
20:37 
20:37 
20:37 
20:37 
20:37 
view
17 x 2 DEV - Building...rc/reports/CreateReport
MIG - Migratin...rc/reports/CreateReport
index.js
index.js
39:60 
33:54 
view
17 x 2 DEV - Building...he Cloud/DEV20/src
SRE - Operatin.../setup/src/frontend/src
ProductTable.js
ProductTable.js
29:50 
29:50 
view
16 x 5 DEV - Building.../DEV10/src/frontend/src
DEV - Building...he Cloud/DEV20/src
MIG - Migratin.../MIG40/src/frontend/src
MIG - Migratin.../MIG50/src/frontend/src
SRE - Operatin.../setup/src/frontend/src
ProductTable.js
ProductTable.js
ProductTable.js
ProductTable.js
ProductTable.js
7:25 
7:25 
7:25 
7:25 
7:25 
view
16 x 4 DEV - Building...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
MIG - Migratin...yService.Api/Migrations
SRE - Operatin...yService.Api/Migrations
20181023230148_InitialCreate.Designer.cs
20181023230148_InitialCreate.Designer.cs
20181023230148_InitialCreate.Designer.cs
20181023230148_InitialCreate.Designer.cs
15:35 
15:35 
15:35 
15:35 
view