aws-samples / aws-serverless-failure-modes
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
  • 37% duplication:
    • 678 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 255 duplicated lines
  • 114 duplicates
system37% (255 lines)
Duplication per Extension
yaml48% (237 lines)
py9% (18 lines)
Duplication per Component (primary)
ROOT45% (237 lines)
lambda/async60% (6 lines)
lambda/kinesis_stream46% (6 lines)
lambda/sqs35% (6 lines)
lambda/api0% (0 lines)
lambda/dynamo_stream0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 114 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
template.yaml
template.yaml
393:402 (2%)
411:420 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
183:192 (2%)
201:210 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
80:89 (2%)
98:107 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
305:314 (2%)
323:332 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
488:497 (2%)
506:515 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
98:104 (1%)
411:417 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
141:147 (1%)
441:447 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
323:329 (1%)
506:512 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
201:207 (1%)
506:512 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
236:242 (1%)
353:359 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
183:189 (1%)
305:311 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
305:311 (1%)
506:512 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
323:329 (1%)
393:399 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
296:302 (1%)
353:359 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
201:207 (1%)
323:329 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
201:207 (1%)
488:494 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
80:86 (1%)
411:417 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
305:311 (1%)
393:399 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
98:104 (1%)
305:311 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
80:86 (1%)
323:329 (1%)
view