awslabs / aws-innovation-sandbox
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
  • 23% duplication:
    • 1,921 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 460 duplicated lines
  • 119 duplicates
system23% (460 lines)
Duplication per Extension
ts31% (273 lines)
py17% (187 lines)
Duplication per Component (primary)
source/lib31% (273 lines)
source/Lambda17% (164 lines)
source/Lambda/utils20% (23 lines)
source0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 119 duplicates...
Size#FoldersFilesLinesCode
19 x 2 source/lib
source/lib
InnovationSandboxManagementAccount.ts
InnovationSandboxSbxAccount.ts
143:165 (15%)
261:283 (8%)
view
17 x 2 source/lib
source/lib
InnovationSandboxManagementAccount.ts
InnovationSandboxSbxAccount.ts
110:129 (13%)
227:246 (7%)
view
12 x 2 source/Lambda
source/Lambda
innovation_run_sbx_stack.py
innovation_tgw_route_tables.py
16:31 (10%)
15:31 (14%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
143:157 (2%)
283:297 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
419:433 (2%)
590:604 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
283:297 (2%)
419:433 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
143:157 (2%)
419:433 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
220:234 (2%)
356:370 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
419:433 (2%)
489:503 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
143:157 (2%)
590:604 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
220:234 (2%)
489:503 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
356:370 (2%)
419:433 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
283:297 (2%)
356:370 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
220:234 (2%)
590:604 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
283:297 (2%)
489:503 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
143:157 (2%)
489:503 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
489:503 (2%)
590:604 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
356:370 (2%)
590:604 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
220:234 (2%)
283:297 (2%)
view
11 x 2 source/lib
source/lib
InnovationSandbox.ts
InnovationSandbox.ts
283:297 (2%)
590:604 (2%)
view