aws-samples / aws-aurora-serverless-data-api-sam
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
  • 12% duplication:
    • 582 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 5 duplicates
system12% (72 lines)
Duplication per Extension
yaml20% (42 lines)
py8% (30 lines)
Duplication per Component (primary)
deploy_scripts20% (42 lines)
lambdas/helper10% (30 lines)
lambdas0% (0 lines)
deploy_scripts/ddl_scripts0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
21 x 2 deploy_scripts
deploy_scripts
api_cfn_template.yaml
api_cfn_template.yaml
81:101 (14%)
116:136 (14%)
view
6 x 2 lambdas/helper
lambdas/helper
dal.py
dal.py
147:152 (2%)
274:279 (2%)
view
6 x 2 lambdas/helper
lambdas/helper
dal.py
dal.py
147:152 (2%)
303:308 (2%)
view
6 x 2 lambdas/helper
lambdas/helper
dal.py
dal.py
69:74 (2%)
103:108 (2%)
view
6 x 2 lambdas/helper
lambdas/helper
dal.py
dal.py
274:279 (2%)
303:308 (2%)
view