microsoft / xbox-live-developer-tools
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
  • 3% duplication:
    • 5,087 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 166 duplicated lines
  • 10 duplicates
system3% (166 lines)
Duplication per Extension
cs3% (166 lines)
Duplication per Component (primary)
Microsoft.Xbox.Service.DevTools/XblConfig8% (58 lines)
Microsoft.Xbox.Service.DevTools/TitleStorage16% (38 lines)
CommandLine/XblConfig4% (25 lines)
Tools/MultiplayerSessionHistoryViewer<1% (14 lines)
Powershell/XblConfig2% (13 lines)
CommandLine/GlobalStorage4% (9 lines)
CommandLine/XblConnectedStorage8% (9 lines)
CommandLine/XblDevAccount0% (0 lines)
CommandLine/XblPlayerDataReset0% (0 lines)
Microsoft.Xbox.Service.DevTools/Authentication0% (0 lines)
Microsoft.Xbox.Service.DevTools/Common0% (0 lines)
Microsoft.Xbox.Service.DevTools/PlayerReset0% (0 lines)
Microsoft.Xbox.Service.DevTools/Properties0% (0 lines)
ROOT0% (0 lines)
Utilities/Pipelines0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
11 x 2 Microsoft.Xbox.Service.DevTools/XblConfig
Microsoft.Xbox.Service.DevTools/XblConfig
ConfigurationManager.cs
ConfigurationManager.cs
83:102 (2%)
188:208 (2%)
view
11 x 2 Microsoft.Xbox.Service.DevTools/XblConfig
Microsoft.Xbox.Service.DevTools/XblConfig
ConfigurationManager.cs
ConfigurationManager.cs
338:351 (2%)
388:401 (2%)
view
11 x 2 Microsoft.Xbox.Service.DevTools/TitleStorage
Microsoft.Xbox.Service.DevTools/TitleStorage
ConnectedStorage.cs
TitleStorage.cs
176:198 (16%)
214:236 (11%)
view
9 x 2 CommandLine/GlobalStorage
CommandLine/XblConnectedStorage
Program.cs
Program.cs
89:104 (5%)
65:80 (9%)
view
8 x 2 Microsoft.Xbox.Service.DevTools/TitleStorage
Microsoft.Xbox.Service.DevTools/TitleStorage
ConnectedStorage.cs
TitleStorage.cs
143:156 (12%)
152:165 (8%)
view
7 x 2 CommandLine/XblConfig
Powershell/XblConfig
Program.cs
PSCmdletBase.cs
601:615 (1%)
177:191 (7%)
view
7 x 2 Tools/MultiplayerSessionHistoryViewer
Tools/MultiplayerSessionHistoryViewer
SessionHistory.cs
SessionHistory.cs
130:139 (6%)
156:165 (6%)
view
7 x 2 Microsoft.Xbox.Service.DevTools/XblConfig
Microsoft.Xbox.Service.DevTools/XblConfig
ConfigurationManager.cs
ConfigurationManager.cs
767:776 (1%)
808:817 (1%)
view
6 x 2 CommandLine/XblConfig
CommandLine/XblConfig
Program.cs
Program.cs
662:669 (1%)
687:694 (1%)
view
6 x 2 CommandLine/XblConfig
Powershell/XblConfig
Program.cs
PSCmdletBase.cs
548:557 (1%)
115:124 (6%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 Microsoft.Xbox.Service.DevTools/TitleStorage
Microsoft.Xbox.Service.DevTools/TitleStorage
ConnectedStorage.cs
TitleStorage.cs
176:199 
214:237 
view
15 x 2 CommandLine/XblConfig
Powershell/XblConfig
Program.cs
PSCmdletBase.cs
598:616 
174:192 
view
14 x 2 Microsoft.Xbox.Service.DevTools/XblConfig
Microsoft.Xbox.Service.DevTools/XblConfig
ConfigurationManager.cs
ConfigurationManager.cs
929:943 
966:980 
view
11 x 2 CommandLine/XblConfig
Powershell/XblConfig
Program.cs
PSCmdletBase.cs
570:582 
140:152 
view
6 x 2 CommandLine/XblConfig
Powershell/XblConfig
Program.cs
PSCmdletBase.cs
538:544 
102:108 
view
6 x 2 Tools/MultiplayerSessionHistoryViewer
Tools/MultiplayerSessionHistoryViewer
Form1.cs
Form1.cs
778:784 
786:792 
view