aws-samples / event-driven-arch-eventbridge-lambda
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
  • 16% duplication:
    • 444 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 9 duplicates
system16% (72 lines)
Duplication per Extension
py20% (36 lines)
yaml13% (36 lines)
Duplication per Component (primary)
ROOT15% (36 lines)
lambdas/on_file_receive33% (18 lines)
lambdas/on_file_converted43% (18 lines)
templates0% (0 lines)
lambdas/files_generator0% (0 lines)
lambdas/on_file_validated0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
12 x 2 lambdas/on_file_converted
lambdas/on_file_receive
app.py
app.py
47:59 (29%)
56:68 (22%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
141:146 (2%)
196:201 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
124:129 (2%)
219:224 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
186:191 (2%)
219:224 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
124:129 (2%)
186:191 (2%)
view
6 x 2 lambdas/on_file_converted
lambdas/on_file_receive
app.py
app.py
40:45 (14%)
49:54 (11%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
97:102 (2%)
186:191 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
97:102 (2%)
124:129 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
97:102 (2%)
219:224 (2%)
view