aws-samples / aws-iot-dotnet-publisher-http
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
  • 53% duplication:
    • 288 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 154 duplicated lines
  • 2 duplicates
system53% (154 lines)
Duplication per Extension
cs63% (154 lines)
Duplication per Component (primary)
dotnetcore/utils60% (54 lines)
dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp/utils72% (54 lines)
dotnetcore74% (23 lines)
dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp71% (23 lines)
dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp/Properties0% (0 lines)
dotnet0% (0 lines)

Duplication Between Components (50+ lines)

G dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp/utils dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp/utils dotnetcore/utils dotnetcore/utils dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp/utils--dotnetcore/utils 108

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
54 x 2 dotnet/Awsiotdevicepubht...siotdevicepubhttp/utils
dotnetcore/utils
HttpHelpers.cs
HttpHelpers.cs
1:156 (88%)
1:153 (88%)
view
23 x 2 dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp
dotnetcore
Program.cs
Program.cs
18:53 (85%)
19:52 (85%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
34 x 2 dotnetcore/utils
dotnet/Awsiotdevicepubht...siotdevicepubhttp/utils
HttpHelpers.cs
HttpHelpers.cs
21:57 
21:58 
view
18 x 2 dotnetcore/utils
dotnet/Awsiotdevicepubht...siotdevicepubhttp/utils
HttpHelpers.cs
HttpHelpers.cs
67:88 
68:89 
view
18 x 2 dotnetcore/utils
dotnet/Awsiotdevicepubht...siotdevicepubhttp/utils
HttpHelpers.cs
HttpHelpers.cs
90:110 
91:112 
view
16 x 2 dotnetcore/utils
dotnet/Awsiotdevicepubht...siotdevicepubhttp/utils
HttpHelpers.cs
HttpHelpers.cs
119:138 
121:142 
view
15 x 2 dotnetcore
dotnet/Awsiotdevicepubhttp/Awsiotdevicepubhttp
Program.cs
Program.cs
35:53 
36:54 
view