aws-samples / aws-netcoreapi-aurora-cdk
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
  • 20% duplication:
    • 526 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 110 duplicated lines
  • 6 duplicates
system20% (110 lines)
Duplication per Extension
cs18% (86 lines)
props85% (24 lines)
Duplication per Component (primary)
cdk/src/Todo/Modules63% (60 lines)
cdk/src/Todo/Utilities39% (26 lines)
cdk/src/Todo/obj75% (12 lines)
webapi/obj60% (12 lines)
cdk/config0% (0 lines)
cdk/src/Todo0% (0 lines)
webapi/Controllers0% (0 lines)
webapi/Models0% (0 lines)
webapi0% (0 lines)

Duplication Between Components (50+ lines)

G cdk/src/Todo/Modules cdk/src/Todo/Modules cdk/src/Todo/Utilities cdk/src/Todo/Utilities cdk/src/Todo/Modules--cdk/src/Todo/Utilities 78

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
30 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Modules
FargateExecutionRole.cs
FargateTaskRole.cs
26:67 (66%)
27:68 (65%)
view
17 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Utilities
FargateExecutionRole.cs
ServiceProvider.cs
31:51 (37%)
11:31 (58%)
view
17 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Utilities
FargateTaskRole.cs
ServiceProvider.cs
32:52 (36%)
11:31 (58%)
view
12 x 2 cdk/src/Todo/obj
webapi/obj
props
Todo.csproj.nuget.g.props
todo-app.csproj.nuget.g.props
1:13 (100%)
1:13 (75%)
view
9 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Utilities
FargateExecutionRole.cs
ServiceProvider.cs
56:67 (20%)
36:47 (31%)
view
9 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Utilities
FargateTaskRole.cs
ServiceProvider.cs
57:68 (19%)
36:47 (31%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
31 x 2 cdk/src/Todo/Modules
cdk/src/Todo/Modules
FargateTaskRole.cs
FargateExecutionRole.cs
31:69 
30:68 
view