aws-samples / amazon-aurora-global-database-endpoint-automation
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
  • 23% duplication:
    • 692 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 163 duplicated lines
  • 20 duplicates
system23% (163 lines)
Duplication per Extension
yml31% (83 lines)
py18% (80 lines)
Duplication per Component (primary)
ROOT23% (163 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
15 x 2 ROOT
ROOT
buildstack.py
create_managed_endpoint.py
85:109 (10%)
247:269 (5%)
view
12 x 2 ROOT
ROOT
buildstack.py
create_managed_endpoint.py
139:157 (8%)
289:305 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
258:268 (4%)
312:322 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
224:234 (4%)
258:268 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
258:268 (4%)
285:295 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
224:234 (4%)
285:295 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
285:295 (4%)
312:322 (4%)
view
11 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
224:234 (4%)
312:322 (4%)
view
9 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
187:195 (3%)
285:293 (3%)
view
9 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
187:195 (3%)
312:320 (3%)
view
9 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
187:195 (3%)
224:232 (3%)
view
9 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
187:195 (3%)
258:266 (3%)
view
8 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
208:215 (3%)
238:245 (3%)
view
7 x 2 ROOT
ROOT
create_managed_endpoint.py
create_managed_endpoint.py
374:384 (2%)
430:439 (2%)
view
7 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
272:278 (2%)
299:305 (2%)
view
6 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
238:243 (2%)
299:304 (2%)
view
6 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
208:213 (2%)
272:277 (2%)
view
6 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
208:213 (2%)
299:304 (2%)
view
6 x 2 ROOT
ROOT
create_managed_endpoint.py
create_managed_endpoint.py
118:124 (2%)
192:199 (2%)
view
6 x 2 ROOT
ROOT
managed-gdb-cft.yml
managed-gdb-cft.yml
238:243 (2%)
272:277 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
create_managed_endpoint.py
buildstack.py
0:0 
0:0 
view