aws-samples / amazon-s3-object-lambda-default-configuration
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
  • 2% duplication:
    • 848 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 24 duplicated lines
  • 2 duplicates
system2% (24 lines)
Duplication per Extension
yaml14% (24 lines)
Duplication per Component (primary)
template14% (24 lines)
function/python_3_9/src/request0% (0 lines)
function/python_3_9/src/error0% (0 lines)
function/python_3_9/src/handler0% (0 lines)
function/python_3_9/src/checksum0% (0 lines)
function/python_3_9/src0% (0 lines)
function/python_3_9/src/transform0% (0 lines)
function/python_3_9/src/response0% (0 lines)
function/java11/src/main0% (0 lines)
function/nodejs_14_x/src/request0% (0 lines)
function/nodejs_14_x/src/error0% (0 lines)
function/nodejs_14_x/src/handler0% (0 lines)
function/nodejs_14_x/src0% (0 lines)
function/nodejs_14_x/src/checksum0% (0 lines)
function/nodejs_14_x/src/transform0% (0 lines)
function/nodejs_14_x/src/response0% (0 lines)
function/nodejs_14_x0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
6 x 2 template
template
s3objectlambda_defaultconfig.yaml
s3objectlambda_defaultconfig.yaml
166:171 (3%)
185:190 (3%)
view
6 x 2 template
template
s3objectlambda_defaultconfig.yaml
s3objectlambda_defaultconfig.yaml
159:164 (3%)
178:183 (3%)
view