microsoft / DACExtensions
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
  • 32% duplication:
    • 29,946 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 9,622 duplicated lines
  • 8,806 duplicates
system32% (9,622 lines)
Duplication per Extension
cs32% (9,622 lines)
Duplication per Component (primary)
DacFxStronglyTypedModel33% (9,500 lines)
SampleTests20% (81 lines)
RuleTests8% (32 lines)
SampleConsoleApp3% (9 lines)
DacFxStronglyTypedModel/Properties0% (0 lines)
RuleSamples0% (0 lines)
RuleSamples/Properties0% (0 lines)
RuleTests/Properties0% (0 lines)
SampleConsoleApp/Properties0% (0 lines)
SampleTests/Properties0% (0 lines)
Scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 8,806 duplicates...
Size#FoldersFilesLinesCode
51 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
11372:11472 (<1%)
15773:15873 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
3556:3632 (<1%)
10143:10219 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
10143:10219 (<1%)
14532:14608 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
5579:5653 (<1%)
12176:12250 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
3556:3632 (<1%)
14532:14608 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
5579:5653 (<1%)
16581:16655 (<1%)
view
38 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
12176:12250 (<1%)
16581:16655 (<1%)
view
37 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
11300:11372 (<1%)
15697:15769 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
121:191 (<1%)
14621:14691 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
11557:11627 (<1%)
20022:20092 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
1226:1296 (<1%)
20022:20092 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
15958:16028 (<1%)
20022:20092 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
11557:11627 (<1%)
15958:16028 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
3645:3715 (<1%)
10232:10302 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
4925:4995 (<1%)
11557:11627 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
1226:1296 (<1%)
4925:4995 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
3645:3715 (<1%)
14621:14691 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
13341:13411 (<1%)
17762:17832 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
4925:4995 (<1%)
15958:16028 (<1%)
view
36 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
Interfaces.cs
Interfaces.cs
4678:4748 (<1%)
11270:11340 (<1%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 DacFxStronglyTypedModel
DacFxStronglyTypedModel
model.cs
model.cs
566:576 
884:894 
view
7 x 2 RuleSamples
RuleSamples
TSqlScriptDomUtils.cs
TSqlScriptDomUtils.cs
167:174 
176:183 
view
6 x 2 RuleSamples
RuleSamples
TSqlScriptDomUtils.cs
TSqlScriptDomUtils.cs
126:132 
134:140 
view
6 x 2 RuleSamples
RuleSamples
TSqlScriptDomUtils.cs
TSqlScriptDomUtils.cs
142:149 
151:157 
view
6 x 2 RuleSamples
RuleSamples
TSqlScriptDomUtils.cs
TSqlScriptDomUtils.cs
185:191 
193:199 
view
6 x 2 SampleConsoleApp
SampleTests
ModelFilterExample.cs
TestFiltering.cs
54:60 
139:145 
view