aws-samples / aws-lambda-lifecycle-hooks-function
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
  • 55% duplication:
    • 438 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 242 duplicated lines
  • 5 duplicates
system55% (242 lines)
Duplication per Extension
py95% (228 lines)
yaml7% (14 lines)
Duplication per Component (primary)
cloudformation40% (128 lines)
ROOT95% (114 lines)

Duplication Between Components (50+ lines)

G cloudformation cloudformation ROOT ROOT cloudformation--ROOT 228

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
63 x 2 cloudformation
ROOT
lambda_backup.py
lambda_backup.py
15:84 (52%)
14:83 (52%)
view
38 x 2 cloudformation
ROOT
lambda_backup.py
lambda_backup.py
85:124 (31%)
85:124 (31%)
view
7 x 2 cloudformation
ROOT
lambda_backup.py
lambda_backup.py
126:132 (5%)
126:132 (5%)
view
7 x 2 cloudformation
cloudformation
template.yaml
template.yaml
68:74 (3%)
83:89 (3%)
view
6 x 2 cloudformation
ROOT
lambda_backup.py
lambda_backup.py
7:13 (5%)
6:12 (5%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
23 x 2 ROOT
cloudformation
lambda_backup.py
lambda_backup.py
0:0 
0:0 
view
16 x 2 ROOT
cloudformation
lambda_backup.py
lambda_backup.py
0:0 
0:0 
view
15 x 2 ROOT
cloudformation
lambda_backup.py
lambda_backup.py
0:0 
0:0 
view
7 x 2 ROOT
cloudformation
lambda_backup.py
lambda_backup.py
0:0 
0:0 
view