microsoft / MTC_WhackAMole.NET
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
  • 12% duplication:
    • 2,382 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 302 duplicated lines
  • 21 duplicates
system12% (302 lines)
Duplication per Extension
cs6% (128 lines)
xaml24% (92 lines)
yaml67% (82 lines)
Duplication per Component (primary)
MoleDeploy.UWPClient17% (104 lines)
helm/kube-admin68% (41 lines)
helm/mole-cloud67% (41 lines)
WhackAMole.UWPClient8% (40 lines)
WhackAMole.UWPClient/Services16% (30 lines)
WhackAMole.KubeAdmin71% (23 lines)
WhackAMole.MoleCloud76% (23 lines)
MoleDeploy.Contracts0% (0 lines)
MoleDeploy.SignalR0% (0 lines)
MoleDeploy.UWPClient/Properties0% (0 lines)
MoleDeploy.UWPClient/Themes0% (0 lines)
MoleDeploy.Vsts0% (0 lines)
WhackAMole.KubeAdmin/Controllers0% (0 lines)
WhackAMole.KubeServices/Interfaces0% (0 lines)
WhackAMole.KubeServices0% (0 lines)
WhackAMole.KubeServices/Models0% (0 lines)
WhackAMole.KubeServices/Providers0% (0 lines)
WhackAMole.MoleCloud/Controllers0% (0 lines)
WhackAMole.UWPClient/Controls0% (0 lines)
WhackAMole.UWPClient/Models0% (0 lines)
WhackAMole.UWPClient/Properties0% (0 lines)
WhackAMole.UWPClient/Themes0% (0 lines)
WhackAMole.UWPClient/ViewModel0% (0 lines)

Duplication Between Components (50+ lines)

G helm/kube-admin helm/kube-admin helm/mole-cloud helm/mole-cloud helm/kube-admin--helm/mole-cloud 82 MoleDeploy.UWPClient MoleDeploy.UWPClient WhackAMole.UWPClient WhackAMole.UWPClient MoleDeploy.UWPClient--WhackAMole.UWPClient 52

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 21 duplicates...
Size#FoldersFilesLinesCode
17 x 2 helm/kube-admin/templates
helm/mole-cloud/templates
deployment.yaml
deployment.yaml
7:23 (73%)
7:23 (73%)
view
14 x 2 WhackAMole.KubeAdmin
WhackAMole.MoleCloud
Program.cs
Program.cs
1:29 (100%)
1:29 (100%)
view
14 x 2 MoleDeploy.UWPClient
WhackAMole.UWPClient
App.xaml.cs
App.xaml.cs
1:64 (66%)
1:65 (66%)
view
12 x 2 helm/kube-admin/templates
helm/mole-cloud/templates
service.yaml
service.yaml
1:12 (100%)
1:12 (100%)
view
12 x 2 helm/kube-admin/templates
helm/mole-cloud/templates
ingress.yaml
ingress.yaml
1:12 (75%)
1:12 (75%)
view
10 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
59:70 (3%)
199:210 (3%)
view
10 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
123:134 (3%)
199:210 (3%)
view
10 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
59:70 (3%)
123:134 (3%)
view
10 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
148:159 (3%)
184:195 (3%)
view
9 x 2 WhackAMole.KubeAdmin
WhackAMole.MoleCloud
Startup.cs
Startup.cs
1:25 (50%)
1:25 (56%)
view
9 x 2 WhackAMole.UWPClient/Services
WhackAMole.UWPClient/Services
AdminService.cs
MoleService.cs
47:61 (15%)
45:59 (24%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
168:175 (2%)
188:195 (2%)
view
7 x 2 WhackAMole.UWPClient
WhackAMole.UWPClient
xaml
MainPage.xaml
Start.xaml
3:9 (12%)
3:9 (53%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
188:195 (2%)
212:219 (2%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
168:175 (2%)
212:219 (2%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
152:159 (2%)
212:219 (2%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
48:55 (2%)
108:115 (2%)
view
7 x 2 MoleDeploy.UWPClient
MoleDeploy.UWPClient
xaml
MainPage.xaml
MainPage.xaml
152:159 (2%)
168:175 (2%)
view
6 x 2 WhackAMole.UWPClient/Services
WhackAMole.UWPClient/Services
AdminService.cs
MoleService.cs
30:39 (10%)
28:37 (16%)
view
6 x 2 MoleDeploy.UWPClient
WhackAMole.UWPClient
MainPage.xaml.cs
MainPage.xaml.cs
55:64 (3%)
45:54 (13%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 WhackAMole.KubeAdmin
WhackAMole.MoleCloud
Program.cs
Program.cs
15:30 
15:30 
view
8 x 2 WhackAMole.KubeAdmin
WhackAMole.MoleCloud
Startup.cs
Startup.cs
18:26 
17:26 
view
6 x 2 WhackAMole.UWPClient/Services
WhackAMole.UWPClient/Services
AdminService.cs
MoleService.cs
34:40 
32:38 
view