aws-samples / dicom-metadata-extractor-serverless-datalake
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
  • 4% duplication:
    • 1,220 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 52 duplicated lines
  • 5 duplicates
system4% (52 lines)
Duplication per Extension
yml7% (40 lines)
py1% (12 lines)
Duplication per Component (primary)
deploy7% (40 lines)
src/utils5% (12 lines)
ROOT0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
10 x 2 deploy
deploy
serverless.yml
serverless.yml
99:108 (1%)
113:122 (1%)
view
7 x 2 deploy
deploy
serverless.yml
serverless.yml
315:321 (1%)
338:344 (1%)
view
6 x 2 src/utils
src/utils
tags.py
tags.py
20:27 (3%)
190:197 (3%)
view
6 x 2 deploy
deploy
serverless.yml
serverless.yml
339:344 (1%)
482:487 (1%)
view
6 x 2 deploy
deploy
serverless.yml
serverless.yml
316:321 (1%)
482:487 (1%)
view