aws-samples / amazon-comprehend-s3-object-lambda-functions
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
  • 11% duplication:
    • 1,250 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 138 duplicated lines
  • 5 duplicates
system11% (138 lines)
Duplication per Extension
yml66% (138 lines)
Duplication per Component (primary)
ROOT66% (138 lines)
src0% (0 lines)
src/clients0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
20 x 2 ROOT
ROOT
access-control-template.yml
redaction-template.yml
14:34 (22%)
14:34 (18%)
view
20 x 2 ROOT
ROOT
access-control-template.yml
redaction-template.yml
39:58 (22%)
51:70 (18%)
view
12 x 2 ROOT
ROOT
access-control-template.yml
redaction-template.yml
82:93 (13%)
99:110 (11%)
view
9 x 2 ROOT
ROOT
access-control-template.yml
redaction-template.yml
59:68 (10%)
75:84 (8%)
view
8 x 2 ROOT
ROOT
access-control-template.yml
redaction-template.yml
74:81 (8%)
90:97 (7%)
view