aws-samples / enginframe-aurora-serverless
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:
    • 757 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 3 duplicates
system10% (78 lines)
Duplication per Extension
py10% (78 lines)
Duplication per Component (primary)
lambda_destroy_pcluster68% (26 lines)
lambda_cert35% (26 lines)
enginframe_aurora_serverless4% (26 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G lambda_cert lambda_cert lambda_destroy_pcluster lambda_destroy_pcluster lambda_cert--lambda_destroy_pcluster 52

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
26 x 2 lambda_cert
lambda_destroy_pcluster
cert.py
destroy.py
24:57 (35%)
24:57 (68%)
view
7 x 2 enginframe_aurora_serverless
enginframe_aurora_serverless
alb.py
enginframe.py
67:73 (12%)
385:391 (1%)
view
6 x 2 enginframe_aurora_serverless
enginframe_aurora_serverless
alb.py
enginframe.py
57:62 (10%)
378:384 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
21 x 2 lambda_destroy_pcluster
lambda_cert
destroy.py
cert.py
0:0 
0:0 
view