microsoft / MIEngine
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
  • 2% duplication:
    • 26,040 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 695 duplicated lines
  • 49 duplicates
system2% (695 lines)
Duplication per Extension
cs2% (630 lines)
yml4% (39 lines)
xaml5% (26 lines)
Duplication per Component (primary)
src/MICore3% (179 lines)
src/MIDebugEngine2% (172 lines)
src/OpenDebugAD74% (155 lines)
src/SSHDebugPS1% (52 lines)
src/MIDebugPackage11% (41 lines)
eng/pipelines4% (39 lines)
src/SSHDebugTests7% (21 lines)
src/DebugEngineHost.Stub9% (15 lines)
src/DebugEngineHost2% (15 lines)
src/WindowsDebugLauncher2% (6 lines)
IL0% (0 lines)
build0% (0 lines)
eng/Scripts0% (0 lines)
src/AndroidDebugLauncher0% (0 lines)
src/DebugEngineHost.VSCode0% (0 lines)
src/IOSDebugLauncher0% (0 lines)
src/JDbg0% (0 lines)
src/MakePIAPortable0% (0 lines)
src/Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier0% (0 lines)
src/tools0% (0 lines)
tools0% (0 lines)
tools/iOS0% (0 lines)

Duplication Between Components (50+ lines)

G src/MICore src/MICore src/OpenDebugAD7 src/OpenDebugAD7 src/MICore--src/OpenDebugAD7 74

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 49 duplicates...
Size#FoldersFilesLinesCode
19 x 2 src/MICore
src/OpenDebugAD7/OpenDebug
PlatformUtilities.cs
Utilities.cs
13:47 (43%)
28:62 (10%)
view
18 x 2 src/MICore
src/OpenDebugAD7/OpenDebug
ExceptionHelper.cs
Utilities.cs
46:65 (62%)
312:331 (10%)
view
16 x 2 src/MIDebugPackage
src/MIDebugPackage
MIDebugPackagePackage.cs
MIDebugPackagePackage.cs
148:170 (7%)
269:291 (7%)
view
11 x 2 src/MIDebugEngine/AD7.Impl
src/MIDebugEngine/AD7.Impl
AD7Property.cs
AD7RegProperty.cs
522:545 (3%)
86:110 (15%)
view
10 x 2 src/OpenDebugAD7
src/OpenDebugAD7
AD7DebugSession.cs
AD7DebugSession.cs
2722:2738 (<1%)
3087:3103 (<1%)
view
10 x 2 src/MIDebugEngine/Engine.Impl
src/MIDebugEngine/Engine.Impl
Breakpoints.cs
Breakpoints.cs
124:141 (4%)
203:220 (4%)
view
10 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-Linux.job.yml
MSHosted-OSX.job.yml
1:11 (71%)
1:11 (71%)
view
10 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-Linux.job.yml
MSHosted-Windows.job.yml
1:11 (71%)
1:11 (71%)
view
10 x 2 src/MIDebugEngine/AD7.Impl
src/SSHDebugPS/AD7
AD7Enums.cs
AD7Enums.cs
15:31 (12%)
14:30 (20%)
view
10 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-OSX.job.yml
MSHosted-Windows.job.yml
1:11 (71%)
1:11 (71%)
view
9 x 2 src/MICore
src/MICore
MIResults.cs
MIResults.cs
786:797 (1%)
820:831 (1%)
view
9 x 2 src/OpenDebugAD7
src/OpenDebugAD7
AD7DebugSession.cs
AD7DebugSession.cs
1051:1074 (<1%)
1246:1269 (<1%)
view
9 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-Linux.job.yml
VSEngSS-MicroBuild2019-1ES.job.yml
2:11 (64%)
1:10 (60%)
view
9 x 2 src/OpenDebugAD7
src/OpenDebugAD7
AD7DebugSession.cs
AD7DebugSession.cs
2759:2771 (<1%)
3117:3129 (<1%)
view
9 x 2 src/MIDebugEngine/Engine.Impl
src/MIDebugPackage
Variables.cs
MIDebugPackagePackage.cs
614:624 (1%)
356:366 (4%)
view
9 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-Windows.job.yml
VSEngSS-MicroBuild2019-1ES.job.yml
2:11 (64%)
1:10 (60%)
view
9 x 2 eng/pipelines/jobs
eng/pipelines/jobs
MSHosted-OSX.job.yml
VSEngSS-MicroBuild2019-1ES.job.yml
2:11 (64%)
1:10 (60%)
view
8 x 2 src/DebugEngineHost.Stub
src/DebugEngineHost
DebugEngineHost.ref.cs
Host.cs
1:49 (6%)
1:41 (27%)
view
8 x 2 src/MIDebugEngine/AD7.Impl
src/SSHDebugPS/AD7
AD7Enums.cs
AD7Enums.cs
74:93 (10%)
73:92 (16%)
view
8 x 2 src/MIDebugEngine/Engine.Impl
src/MIDebugEngine/Engine.Impl
Variables.cs
Variables.cs
256:270 (1%)
557:571 (1%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 src/MICore
src/OpenDebugAD7/OpenDebug
ExceptionHelper.cs
Utilities.cs
46:66 
312:332 
view
15 x 2 src/MICore
src/OpenDebugAD7/OpenDebug
PlatformUtilities.cs
Utilities.cs
33:48 
48:63 
view
11 x 2 src/MICore
src/MICore
LaunchOptions.cs
LaunchOptions.cs
1726:1737 
1739:1750 
view
8 x 2 src/WindowsDebugLauncher
tools
Program.cs
Setup.csx
206:214 
41:49 
view
7 x 2 src/DebugEngineHost.VSCode/VSCode
src/DebugEngineHost.VSCode/VSCode
EngineConfiguration.cs
EngineConfiguration.cs
168:176 
178:186 
view
7 x 2 src/MICore
src/OpenDebugAD7/OpenDebug
PlatformUtilities.cs
Utilities.cs
24:31 
39:46 
view
7 x 2 src/SSHDebugPS/UI
src/SSHDebugPS/UI
ContainerPickerDialogWindow.xaml.cs
ContainerPickerDialogWindow.xaml.cs
80:88 
90:98 
view
6 x 2 src/MIDebugEngine/Engine.Impl
src/MIDebugEngine/Engine.Impl
DebuggedProcess.cs
DebuggedProcess.cs
1702:1708 
1858:1864 
view