microsoft / MIMConfigDocumenter
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
  • 34% duplication:
    • 11,012 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,789 duplicated lines
  • 932 duplicates
system34% (3,789 lines)
Duplication per Extension
XML99% (1,968 lines)
cs20% (1,783 lines)
psm113% (38 lines)
Duplication per Component (primary)
src/MIMConfigDocumenter20% (1,759 lines)
src/SolutionOutput/Data/FIM-R2-SP1-Base_4.1.3461.099% (656 lines)
src/SolutionOutput/Data/MIM-SP1-Base_4.4.1459.099% (656 lines)
src/SolutionOutput/Data/MIM-SP1-Base_4.4.1302.099% (656 lines)
src/MIMConfigDocumenterCmd/Scripts10% (38 lines)
src/MIMConfigDocumenter/Properties80% (12 lines)
src/MIMConfigDocumenterCmd/Properties80% (12 lines)
src/MIMConfigDocumenter/Scripts0% (0 lines)
src/MIMConfigDocumenterCmd0% (0 lines)
src0% (0 lines)

Duplication Between Components (50+ lines)

G src/SolutionOutput/Data/MIM-SP1-Base_4.4.1302.0 src/SolutionOutput/Data/MIM-SP1-Base_4.4.1302.0 src/SolutionOutput/Data/MIM-SP1-Base_4.4.1459.0 src/SolutionOutput/Data/MIM-SP1-Base_4.4.1459.0 src/SolutionOutput/Data/MIM-SP1-Base_4.4.1302.0--src/SolutionOutput/Data/MIM-SP1-Base_4.4.1459.0 1312 src/SolutionOutput/Data/FIM-R2-SP1-Base_4.1.3461.0 src/SolutionOutput/Data/FIM-R2-SP1-Base_4.1.3461.0 src/SolutionOutput/Data/FIM-R2-SP1-Base_4.1.3461.0--src/SolutionOutput/Data/MIM-SP1-Base_4.4.1459.0 1312 src/SolutionOutput/Data/FIM-R2-SP1-Base_4.1.3461.0--src/SolutionOutput/Data/MIM-SP1-Base_4.4.1302.0 1312

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 932 duplicates...
Size#FoldersFilesLinesCode
656 x 2 src/SolutionOutput/Data/...e_4.4.1302.0/SyncConfig
src/SolutionOutput/Data/...e_4.4.1459.0/SyncConfig
MV.XML
MV.XML
10:808 (99%)
10:808 (99%)
view
656 x 2 src/SolutionOutput/Data/...e_4.1.3461.0/SyncConfig
src/SolutionOutput/Data/...e_4.4.1459.0/SyncConfig
MV.XML
MV.XML
10:808 (99%)
10:808 (99%)
view
656 x 2 src/SolutionOutput/Data/...e_4.1.3461.0/SyncConfig
src/SolutionOutput/Data/...e_4.4.1302.0/SyncConfig
MV.XML
MV.XML
10:808 (99%)
10:808 (99%)
view
26 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
PowerShellConnectorDocumenter.cs
86:124 (6%)
57:94 (72%)
view
18 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
GenericLdapConnectorDocumenter.cs
100:124 (4%)
70:93 (51%)
view
18 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericLdapConnectorDocumenter.cs
PowerShellConnectorDocumenter.cs
70:93 (51%)
71:94 (50%)
view
17 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericSqlConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
71:93 (19%)
70:92 (50%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServicePolicyDocumenter.cs
MIMServicePolicyDocumenter.cs
1963:1998 (<1%)
2014:2051 (<1%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServicePolicyDocumenter.cs
MIMServicePolicyDocumenter.cs
1963:1998 (<1%)
2071:2105 (<1%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericLdapConnectorDocumenter.cs
GenericSqlConnectorDocumenter.cs
72:93 (45%)
72:93 (18%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
PowerShellConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
73:94 (44%)
71:92 (47%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
GenericSqlConnectorDocumenter.cs
103:124 (3%)
72:93 (18%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericLdapConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
72:93 (45%)
71:92 (47%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServicePolicyDocumenter.cs
MIMServicePolicyDocumenter.cs
2014:2051 (<1%)
2071:2105 (<1%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
103:124 (3%)
71:92 (47%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericSqlConnectorDocumenter.cs
PowerShellConnectorDocumenter.cs
72:93 (18%)
73:94 (44%)
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryConnectorDocumenter.cs
ActiveDirectoryLDSConnectorDocumenter.cs
68:88 (3%)
66:86 (20%)
view
15 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
GenericLdapConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
36:70 (42%)
36:70 (44%)
view
15 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
AzureActiveDirectoryConnectorDocument...
PowerShellConnectorDocumenter.cs
71:90 (48%)
75:94 (41%)
view
15 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryGALConnectorDocumenter.cs
ActiveDirectoryLDSConnectorDocumenter.cs
68:87 (6%)
67:86 (18%)
view
Duplicated Units
The list of top 16 duplicated units.
See data for all 16 unit duplicates...
Size#FoldersFilesLinesCode
31 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
PowerShellConnectorDocumenter.cs
86:126 
57:96 
view
25 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
Extensible2ConnectorDocumenter.cs
331:362 
443:474 
view
22 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServicePolicyDocumenter.cs
MIMServicePolicyDocumenter.cs
271:296 
343:368 
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryGALConnectorDocumenter.cs
ActiveDirectoryGALConnectorDocumenter.cs
197:224 
396:423 
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
DatabaseConnectorDocumenter.cs
DatabaseConnectorDocumenter.cs
511:529 
633:651 
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MetaverseDocumenter.cs
MetaverseDocumenter.cs
1045:1067 
1279:1301 
view
16 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MetaverseDocumenter.cs
MetaverseDocumenter.cs
1123:1145 
1201:1223 
view
15 x 5 src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryConnectorDocumenter.cs
ActiveDirectoryLDSConnectorDocumenter.cs
ConnectorDocumenter.cs
DatabaseConnectorDocumenter.cs
FIMConnectorDocumenter.cs
172:191 
172:191 
339:358 
181:200 
164:183 
view
15 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Extensible2ConnectorDocumenter.cs
Extensible2ConnectorDocumenter.cs
276:295 
849:868 
view
15 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServicePolicyDocumenter.cs
MIMServiceSchemaDocumenter.cs
39:56 
36:53 
view
13 x 9 src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryConnectorDocumenter.cs
AzureActiveDirectoryConnectorDocument...
DatabaseConnectorDocumenter.cs
Extensible2ConnectorDocumenter.cs
FIMConnectorDocumenter.cs
GenericLdapConnectorDocumenter.cs
GenericSqlConnectorDocumenter.cs
PowerShellConnectorDocumenter.cs
WebServicesConnectorDocumenter.cs
35:49 
35:49 
35:49 
38:52 
35:49 
35:49 
35:49 
35:49 
35:49 
view
13 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryGALConnectorDocumenter.cs
MetaverseDocumenter.cs
500:515 
994:1009 
view
12 x 6 src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryConnectorDocumenter.cs
ActiveDirectoryGALConnectorDocumenter.cs
ConnectorDocumenter.cs
Documenter.cs
Extensible2ConnectorDocumenter.cs
MetaverseDocumenter.cs
531:544 
279:292 
693:706 
2316:2329 
831:844 
492:505 
view
12 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
MIMServiceConfigDocumenter.cs
MIMSyncConfigDocumenter.cs
96:109 
91:104 
view
11 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
ActiveDirectoryGALConnectorDocumenter.cs
ActiveDirectoryLDSConnectorDocumenter.cs
35:47 
35:47 
view
7 x 2 src/MIMConfigDocumenter
src/MIMConfigDocumenter
Logger.cs
Logger.cs
274:282 
338:346 
view