aws / aws-xray-sdk-dotnet
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
  • 9% duplication:
    • 4,514 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 410 duplicated lines
  • 27 duplicates
system9% (410 lines)
Duplication per Extension
cs9% (410 lines)
Duplication per Component (primary)
sdk/src/Handlers/SqlServer65% (186 lines)
sdk/src/Core7% (51 lines)
sdk/src/Handlers/AwsSdk8% (36 lines)
sdk/src/Core/Plugins22% (32 lines)
sdk/src/Handlers/System.Net22% (22 lines)
sdk/src/Core/Internal1% (20 lines)
sdk/src/Handlers/AspNetCore14% (20 lines)
sdk/src/Handlers/AspNet14% (19 lines)
sdk/src/Core/Strategies6% (12 lines)
sdk/src/Core/Properties60% (6 lines)
sdk/src/Handlers/EntityFramework3% (6 lines)
sdk/src/Core/Sampling0% (0 lines)
sdk/src/Core/Exceptions0% (0 lines)
buildtools0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
34 x 2 sdk/src/Handlers/SqlServer
sdk/src/Handlers/SqlServer
TraceableSqlCommand.net45.cs
TraceableSqlCommand.netstandard.cs
41:178 (25%)
37:174 (35%)
view
28 x 2 sdk/src/Handlers/SqlServer
sdk/src/Handlers/SqlServer
TraceableSqlCommand.net45.cs
TraceableSqlCommand.netstandard.cs
407:549 (21%)
266:408 (29%)
view
16 x 2 sdk/src/Handlers/SqlServer
sdk/src/Handlers/SqlServer
TraceableSqlCommand.net45.cs
TraceableSqlCommand.netstandard.cs
205:251 (12%)
180:226 (16%)
view
11 x 2 sdk/src/Handlers/System.Net
sdk/src/Handlers/System.Net
HttpWebRequestTracingExtension.cs
HttpWebRequestTracingExtension.cs
47:69 (34%)
88:110 (34%)
view
11 x 2 sdk/src/Handlers/AwsSdk/Internal
sdk/src/Handlers/AwsSdk/Internal
XRayPipelineHandler.cs
XRayPipelineHandler.cs
485:505 (3%)
555:575 (3%)
view
10 x 2 sdk/src/Core/Internal/Context
sdk/src/Core/Internal/Context
AsyncLocalContextContainer.netstandar...
LambdaContextContainer.netstandard.cs
48:82 (58%)
47:81 (52%)
view
8 x 2 sdk/src/Core
sdk/src/Core
AWSXRayRecorder.netcore.cs
AWSXRayRecorderImpl.cs
348:365 (4%)
794:811 (2%)
view
8 x 2 sdk/src/Handlers/SqlServer
sdk/src/Handlers/SqlServer
TraceableSqlCommand.net45.cs
TraceableSqlCommand.netstandard.cs
343:368 (6%)
232:257 (8%)
view
8 x 2 sdk/src/Core
sdk/src/Core
AWSXRayRecorder.cs
AWSXRayRecorder.netcore.cs
125:137 (15%)
268:279 (4%)
view
7 x 2 sdk/src/Handlers/AspNetCore/Internal
sdk/src/Handlers/AwsSdk/Internal
AWSXRayMiddleware.cs
XRayPipelineHandler.cs
169:183 (5%)
418:432 (2%)
view
7 x 2 sdk/src/Core
sdk/src/Core
AWSXRayRecorder.netcore.cs
AWSXRayRecorder.netcore.cs
269:279 (4%)
296:307 (4%)
view
7 x 2 sdk/src/Handlers/AwsSdk/Internal
sdk/src/Handlers/AwsSdk/Internal
XRayPipelineHandler.cs
XRayPipelineHandler.cs
418:432 (2%)
442:455 (2%)
view
7 x 2 sdk/src/Handlers/AspNetCore/Internal
sdk/src/Handlers/AwsSdk/Internal
AWSXRayMiddleware.cs
XRayPipelineHandler.cs
169:183 (5%)
442:455 (2%)
view
7 x 2 sdk/src/Handlers/SqlServer
sdk/src/Handlers/SqlServer
DbCommandInterceptor.cs
DbCommandInterceptor.cs
79:90 (13%)
102:113 (13%)
view
7 x 2 sdk/src/Core
sdk/src/Core
AWSXRayRecorder.cs
AWSXRayRecorder.netcore.cs
126:137 (13%)
296:307 (4%)
view
7 x 2 sdk/src/Handlers/AspNet
sdk/src/Handlers/AspNetCore/Internal
AWSXRayASPNET.cs
AWSXRayMiddleware.cs
304:312 (5%)
206:214 (5%)
view
7 x 2 sdk/src/Core/Plugins
sdk/src/Core/Plugins
ECSPlugin.cs
ElasticBeanstalkPlugin.cs
56:63 (21%)
58:65 (17%)
view
6 x 2 sdk/src/Handlers/AspNet
sdk/src/Handlers/AspNetCore/Internal
AWSXRayASPNET.cs
AWSXRayMiddleware.cs
259:270 (4%)
169:180 (4%)
view
6 x 2 sdk/src/Handlers/AspNet
sdk/src/Handlers/AwsSdk/Internal
AWSXRayASPNET.cs
XRayPipelineHandler.cs
259:270 (4%)
442:452 (1%)
view
6 x 2 sdk/src/Core/Plugins
sdk/src/Core/Plugins
EC2Plugin.cs
ElasticBeanstalkPlugin.cs
49:55 (8%)
46:52 (15%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
9 x 2 sdk/src/Core/Internal/Utils
sdk/src/Core/Internal/Utils
AppSettings.net45.cs
AppSettings.net45.cs
123:133 
136:146 
view
8 x 2 sdk/src/Core/Internal/Context
sdk/src/Core/Internal/Context
AsyncLocalContextContainer.netstandar...
LambdaContextContainer.netstandard.cs
73:83 
72:82 
view