aws-samples / aws-lambda-deploy
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:
    • 426 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 4 duplicates
system23% (100 lines)
Duplication per Extension
py38% (100 lines)
Duplication per Component (primary)
functions/simple35% (50 lines)
functions/health_check69% (29 lines)
functions/calculate_weights78% (15 lines)
functions/update_weight21% (6 lines)
ROOT0% (0 lines)
functions/finalize0% (0 lines)
functions/rollback0% (0 lines)

Duplication Between Components (50+ lines)

G functions/health_check functions/health_check functions/simple functions/simple functions/health_check--functions/simple 58

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
29 x 2 functions/health_check
functions/simple
health_check.py
simple.py
25:55 (69%)
83:113 (20%)
view
9 x 2 functions/calculate_weights
functions/simple
calculate_weights.py
simple.py
20:29 (47%)
149:157 (6%)
view
6 x 2 functions/simple
functions/update_weight
simple.py
update_weight.py
52:57 (4%)
33:38 (21%)
view
6 x 2 functions/calculate_weights
functions/simple
calculate_weights.py
simple.py
13:18 (31%)
138:144 (4%)
view