microsoft / navcontainerhelper
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
  • 14% duplication:
    • 25,263 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,734 duplicated lines
  • 8,768 duplicates
system14% (3,734 lines)
Duplication per Extension
ps114% (3,598 lines)
toml100% (136 lines)
Duplication per Component (primary)
AppHandling15% (1,371 lines)
ContainerHandling11% (554 lines)
ContainerInfo29% (299 lines)
ROOT8% (287 lines)
BcSaaS22% (273 lines)
Bacpac18% (158 lines)
ObjectHandling12% (156 lines)
Misc8% (119 lines)
PackageHandling25% (96 lines)
AzureAD17% (86 lines)
AzureVM24% (65 lines)
ConfigPackageHandling23% (60 lines)
Api23% (58 lines)
UserHandling15% (53 lines)
TenantHandling20% (47 lines)
CompanyHandling23% (37 lines)
SymbolHandling25% (15 lines)

Duplication Between Components (50+ lines)

G AppHandling AppHandling ContainerInfo ContainerInfo AppHandling--ContainerInfo 488 ContainerHandling ContainerHandling AppHandling--ContainerHandling 482 BcSaaS BcSaaS AppHandling--BcSaaS 431 ObjectHandling ObjectHandling AppHandling--ObjectHandling 404 Misc Misc AppHandling--Misc 401 PackageHandling PackageHandling AppHandling--PackageHandling 352 UserHandling UserHandling AppHandling--UserHandling 350 Bacpac Bacpac AppHandling--Bacpac 348 ConfigPackageHandling ConfigPackageHandling AppHandling--ConfigPackageHandling 333 AzureAD AzureAD AppHandling--AzureAD 320 CompanyHandling CompanyHandling AppHandling--CompanyHandling 315 TenantHandling TenantHandling AppHandling--TenantHandling 306 AzureVM AzureVM AppHandling--AzureVM 306 SymbolHandling SymbolHandling AppHandling--SymbolHandling 288 ContainerInfo--ObjectHandling 297 ContainerInfo--Misc 293 ContainerInfo--PackageHandling 244 ContainerInfo--UserHandling 232 ContainerInfo--TenantHandling 216 ContainerInfo--SymbolHandling 198 ContainerHandling--ContainerInfo 331 ContainerHandling--ObjectHandling 242 ContainerHandling--Misc 239 ContainerHandling--PackageHandling 190 ContainerHandling--UserHandling 176 BcSaaS--ContainerInfo 314 BcSaaS--ContainerHandling 261 BcSaaS--ObjectHandling 227 BcSaaS--Misc 224 BcSaaS--PackageHandling 175 BcSaaS--UserHandling 161 BcSaaS--ConfigPackageHandling 155 ObjectHandling--UserHandling 158 ObjectHandling--PackageHandling 156 Misc--ObjectHandling 205 Misc--PackageHandling 153 Api Api Api--AppHandling 354 Api--ContainerInfo 214 Api--ContainerHandling 155 Bacpac--ContainerInfo 242 Bacpac--ContainerHandling 186 Bacpac--BcSaaS 171 ConfigPackageHandling--ContainerInfo 223 ConfigPackageHandling--ContainerHandling 167 AzureAD--ContainerInfo 214 AzureAD--ContainerHandling 158 CompanyHandling--ContainerInfo 225 CompanyHandling--ContainerHandling 162 AzureVM--ContainerInfo 216 AzureVM--ContainerHandling 153

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 8,768 duplicates...
Size#FoldersFilesLinesCode
34 x 2 ContainerHandling/traefik
ContainerHandling/traefik
template_traefik.toml
template_traefik_https.toml
4:42 (94%)
5:43 (91%)
view
33 x 2 AppHandling
AppHandling
Run-AlPipeline.ps1
Run-AlPipeline.ps1
865:898 (1%)
957:989 (1%)
view
30 x 2 AppHandling
AppHandling
Get-TestsFromNavContainer.ps1
Run-TestsInNavContainer.ps1
114:147 (12%)
227:260 (6%)
view
29 x 2 ContainerHandling/traefik
ContainerHandling/traefik
template_traefik_https_own.toml
template_traefik_own.toml
5:37 (90%)
4:36 (93%)
view
27 x 2 ContainerHandling
ContainerHandling
New-NavContainer.ps1
New-NavImage.ps1
416:442 (1%)
129:155 (4%)
view
27 x 2 AppHandling
AppHandling
Run-ConnectionTestToNavContainer.ps1
Run-TestsInNavContainer.ps1
97:125 (10%)
189:217 (5%)
view
26 x 2 ROOT
ROOT
TelemetryHelper.ps1
TelemetryHelper.ps1
240:265 (7%)
325:350 (7%)
view
20 x 2 BcSaaS
BcSaaS
New-BcAuthContext.ps1
New-BcAuthContext.ps1
193:212 (5%)
299:318 (5%)
view
19 x 2 ContainerHandling/traefik
ContainerHandling/traefik
template_traefik_https.toml
template_traefik_https_own.toml
1:22 (51%)
1:22 (59%)
view
18 x 2 ContainerHandling/traefik
ContainerHandling/traefik
template_traefik.toml
template_traefik_own.toml
1:21 (50%)
1:21 (58%)
view
18 x 2 AppHandling
AppHandling
Run-ConnectionTestToNavContainer.ps1
Run-TestsInNavContainer.ps1
53:73 (7%)
125:145 (3%)
view
18 x 2 ROOT
ROOT
TelemetryHelper.ps1
TelemetryHelper.ps1
219:236 (5%)
298:316 (5%)
view
18 x 2 AppHandling
ContainerHandling
Sign-NavContainerApp.ps1
Set-BcContainerKeyVaultAadAppAndCerti...
65:83 (12%)
37:55 (18%)
view
18 x 2 AzureAD
AzureAD
Create-AadAppsForNav.ps1
Create-AadUsersInNavContainer.ps1
67:86 (4%)
41:60 (19%)
view
18 x 2 ContainerHandling
ContainerHandling
New-NavContainer.ps1
New-NavContainer.ps1
288:305 (<1%)
310:327 (<1%)
view
18 x 2 ContainerHandling
ContainerHandling
New-NavContainer.ps1
New-NavContainer.ps1
523:543 (<1%)
863:883 (<1%)
view
17 x 2 AppHandling
AppHandling
Run-ConnectionTestToNavContainer.ps1
Run-TestsInNavContainer.ps1
74:93 (6%)
151:169 (3%)
view
17 x 2 AppHandling
AppHandling
Get-TestsFromNavContainer.ps1
Run-TestsInNavContainer.ps1
41:57 (6%)
81:97 (3%)
view
17 x 2 AppHandling
AppHandling
ClientContext.ps1
ClientContext.ps1
117:133 (3%)
143:159 (3%)
view
16 x 2 AppHandling
AppHandling
Run-AlPipeline.ps1
Run-AlPipeline.ps1
937:956 (<1%)
1067:1086 (<1%)
view