aws-samples / distributed-load-testing-using-aws-fargate
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
  • 14% duplication:
    • 555 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 6 duplicates
system14% (82 lines)
Duplication per Extension
yaml14% (82 lines)
Duplication per Component (primary)
cloudformation14% (82 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
14 x 2 cloudformation
cloudformation
additional-region.yaml
master.yaml
51:64 (29%)
102:115 (15%)
view
11 x 2 cloudformation
cloudformation
additional-region.yaml
master.yaml
33:44 (23%)
48:59 (11%)
view
7 x 2 cloudformation
cloudformation
pipeline.yaml
pipeline.yaml
148:154 (3%)
165:171 (3%)
view
6 x 2 cloudformation
cloudformation
master.yaml
master.yaml
62:67 (6%)
94:99 (6%)
view
6 x 2 cloudformation
cloudformation
master.yaml
master.yaml
80:85 (6%)
94:99 (6%)
view
6 x 2 cloudformation
cloudformation
master.yaml
master.yaml
62:67 (6%)
80:85 (6%)
view