aws-samples / cdk-stepfunctions-redshift
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
  • 10% duplication:
    • 1,402 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 154 duplicated lines
  • 7 duplicates
system10% (154 lines)
Duplication per Extension
py13% (104 lines)
ts8% (50 lines)
Duplication per Component (primary)
lambda/python/cfn_example_functions28% (63 lines)
src/machines15% (50 lines)
lambda/python/rs_integration_function/callback_sources20% (29 lines)
lambda/python/rs_integration_function/step_function40% (12 lines)
src0% (0 lines)
lambda/python/rs_integration_function0% (0 lines)
lambda/python/rs_integration_function/redshift_data0% (0 lines)
lambda/python/rs_integration_function/ddb0% (0 lines)

Duplication Between Components (50+ lines)

G lambda/python/cfn_example_functions lambda/python/cfn_example_functions lambda/python/rs_integration_function/callback_sources lambda/python/rs_integration_function/callback_sources lambda/python/cfn_example_functions--lambda/python/rs_integration_function/callback_sources 58

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
29 x 2 lambda/python/cfn_example_functions
lambda/python/rs_integra...nction/callback_sources
cfnresponse.py
cfnresponse.py
10:47 (100%)
10:47 (100%)
view
10 x 2 lambda/python/cfn_example_functions
lambda/python/cfn_example_functions
create_drop.py
manage_user.py
41:54 (28%)
65:77 (6%)
view
10 x 2 src/machines
src/machines
single_failure.ts
success_and_fail.ts
19:28 (24%)
38:47 (22%)
view
8 x 2 src/machines
src/machines
single_success.ts
success_and_fail.ts
19:26 (19%)
20:27 (18%)
view
7 x 2 lambda/python/cfn_example_functions
lambda/python/cfn_example_functions
create_drop.py
manage_user.py
22:31 (20%)
30:42 (4%)
view
7 x 2 src/machines
src/machines
cancelling_statement.ts
single_failure.ts
76:82 (8%)
31:37 (17%)
view
6 x 2 lambda/python/rs_integra..._function/step_function
lambda/python/rs_integra..._function/step_function
api.py
api.py
20:26 (20%)
36:42 (20%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
25 x 2 lambda/python/cfn_example_functions
lambda/python/rs_integra...nction/callback_sources
cfnresponse.py
cfnresponse.py
0:0 
0:0 
view