aws / aws-xray-dotnet-agent
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
  • 6% duplication:
    • 1,748 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 120 duplicated lines
  • 8 duplicates
system6% (120 lines)
Duplication per Extension
vcxproj34% (44 lines)
cpp7% (43 lines)
cs2% (26 lines)
h3% (7 lines)
Duplication per Component (primary)
profiler/src11% (94 lines)
sdk/Utils3% (14 lines)
sdk/Http13% (12 lines)
sdk0% (0 lines)
sdk/AwsSdk0% (0 lines)
sdk/Diagnostic0% (0 lines)
sdk/Initialization0% (0 lines)
sdk/EntityFramework0% (0 lines)
sdk/Sql0% (0 lines)
sdk/AspNetCore0% (0 lines)
sdk/AspNet0% (0 lines)
sdk/Configuration0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
15 x 2 src/profiler/src
src/profiler/src
ILWriter.cpp
ILWriter.cpp
185:201 (6%)
271:285 (6%)
view
13 x 2 src/profiler/src
src/profiler/src
vcxproj
ClrProfiler.vcxproj
ClrProfiler.vcxproj
107:120 (10%)
124:137 (10%)
view
9 x 2 src/profiler/src
src/profiler/src
vcxproj
ClrProfiler.vcxproj
ClrProfiler.vcxproj
81:90 (6%)
94:103 (6%)
view
7 x 2 src/sdk/Utils
src/sdk/Utils
AspNetCoreRequestUtil.cs
AspNetRequestUtil.cs
75:83 (5%)
174:182 (6%)
view
7 x 2 src/profiler/src
src/profiler/src
ClassFactory.cpp
CorProfiler.h
61:67 (20%)
121:127 (5%)
view
6 x 2 src/profiler/src
src/profiler/src
ILWriter.cpp
ILWriter.cpp
234:239 (2%)
276:281 (2%)
view
6 x 2 src/profiler/src
src/profiler/src
ILWriter.cpp
ILWriter.cpp
191:197 (2%)
234:239 (2%)
view
6 x 2 src/sdk/Http
src/sdk/Http
HttpOutDiagnosticListenerNetframework.cs
HttpOutDiagnosticListenerNetstandard.cs
60:76 (12%)
58:72 (15%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
27 x 4 src/sdk/EntityFramework
src/sdk/Http
src/sdk/Http
src/sdk/AspNetCore
EntityFrameworkCoreDiagnosticListener.cs
HttpOutDiagnosticListenerNetframework.cs
HttpOutDiagnosticListenerNetstandard.cs
AspNetCoreDiagnosticListener.cs
37:65 
42:69 
40:67 
44:71 
view
8 x 2 src/profiler/src
src/profiler/src
CorProfiler.h
ClassFactory.cpp
144:154 
35:44 
view
8 x 2 src/sdk/Utils
src/sdk/Utils
HttpRequestUtil.cs
HttpRequestUtil.cs
183:191 
193:201 
view
8 x 2 src/sdk/Configuration
src/sdk/Configuration
XRayConfiguration.Net45.cs
XRayConfiguration.Net45.cs
65:74 
76:85 
view
7 x 2 src/sdk/Configuration
src/sdk/Configuration
XRayConfiguration.Netstandard.cs
XRayConfiguration.Netstandard.cs
92:100 
102:110 
view