aws-samples / amazon-lookout-for-vision-serverless-app
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
  • 8% duplication:
    • 1,144 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 9 duplicates
system8% (94 lines)
Duplication per Extension
yml12% (94 lines)
Duplication per Component (primary)
ROOT12% (94 lines)
functions/S3UploaderFunction0% (0 lines)
functions/CreateS3BucketNotification0% (0 lines)
functions/DetectAnomaliesFunction0% (0 lines)
functions/DynamoDbToFirehose0% (0 lines)
functions/CreateManifestFileInS30% (0 lines)
functions/ApiGwCustomAuthorizer0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
template.yml
template.yml
569:581 (1%)
587:599 (1%)
view
8 x 2 ROOT
ROOT
template.yml
template.yml
188:195 (1%)
206:213 (1%)
view
8 x 2 ROOT
ROOT
template.yml
template.yml
464:471 (1%)
484:491 (1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
558:563 (<1%)
576:581 (<1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
649:654 (<1%)
676:681 (<1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
551:556 (<1%)
587:592 (<1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
551:556 (<1%)
569:574 (<1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
558:563 (<1%)
594:599 (<1%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
694:699 (<1%)
724:729 (<1%)
view