microsoft / idfix
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:
    • 3,050 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 97 duplicated lines
  • 8 duplicates
system3% (97 lines)
Duplication per Extension
cs3% (97 lines)
Duplication per Component (primary)
src/IdFix/Rules/Dedicated35% (41 lines)
src/IdFix/Rules/MultiTentant53% (33 lines)
src/IdFix1% (23 lines)
ROOT0% (0 lines)
src/IdFix.Setup0% (0 lines)
src/IdFix/Controls0% (0 lines)
src/IdFix/Properties0% (0 lines)
src/IdFix/Rules0% (0 lines)
src/IdFix/Rules/Shared0% (0 lines)
src/IdFix/Settings0% (0 lines)

Duplication Between Components (50+ lines)

G src/IdFix/Rules/Dedicated src/IdFix/Rules/Dedicated src/IdFix/Rules/MultiTentant src/IdFix/Rules/MultiTentant src/IdFix/Rules/Dedicated--src/IdFix/Rules/MultiTentant 74

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
16 x 2 src/IdFix/Rules/Dedicated
src/IdFix/Rules/MultiTentant
ProxyAddressComposedRule.cs
ProxyAddressComposedRule.cs
16:53 (61%)
13:50 (66%)
view
9 x 2 src/IdFix/Rules/Dedicated
src/IdFix/Rules/MultiTentant
TargetAddressComposedRule.cs
TargetAddressComposedRule.cs
47:65 (40%)
55:73 (36%)
view
8 x 2 src/IdFix
src/IdFix
FormApp.Designer.cs
FormSettings.Designer.cs
11:34 (2%)
13:36 (2%)
view
8 x 2 src/IdFix/Rules/Dedicated
src/IdFix/Rules/MultiTentant
TargetAddressComposedRule.cs
TargetAddressComposedRule.cs
1:34 (36%)
1:34 (32%)
view
8 x 2 src/IdFix/Rules/Dedicated
src/IdFix/Rules/MultiTentant
ProxyAddressComposedRule.cs
TargetAddressComposedRule.cs
58:76 (30%)
57:73 (32%)
view
8 x 2 src/IdFix/Rules/Dedicated
src/IdFix/Rules/Dedicated
ProxyAddressComposedRule.cs
TargetAddressComposedRule.cs
58:76 (30%)
49:65 (36%)
view
7 x 2 src/IdFix
src/IdFix
FormApp.Designer.cs
FormFeedback.Designer.cs
11:32 (1%)
11:32 (15%)
view
7 x 2 src/IdFix
src/IdFix
FormFeedback.Designer.cs
FormSettings.Designer.cs
11:32 (15%)
13:34 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 3 src/IdFix
src/IdFix
src/IdFix
FormApp.Designer.cs
FormFeedback.Designer.cs
FormSettings.Designer.cs
17:24 
17:24 
19:26 
view