aws-samples / hostname-as-target-for-elastic-load-balancer
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
  • 13% duplication:
    • 9,616 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,334 duplicated lines
  • 98 duplicates
system13% (1,334 lines)
Duplication per Extension
yaml56% (864 lines)
py5% (470 lines)
Duplication per Component (primary)
deployment56% (864 lines)
source/dns/rdtypes/ANY15% (218 lines)
source/dns3% (185 lines)
source/dns/rdtypes/IN8% (43 lines)
source/dns/rdtypes8% (24 lines)
source0% (0 lines)

Duplication Between Components (50+ lines)

G source/dns/rdtypes/ANY source/dns/rdtypes/ANY source/dns/rdtypes/IN source/dns/rdtypes/IN source/dns/rdtypes/ANY--source/dns/rdtypes/IN 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 98 duplicates...
Size#FoldersFilesLinesCode
119 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
157:287 (29%)
566:696 (11%)
view
69 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
331:403 (17%)
963:1035 (6%)
view
22 x 2 source/dns/rdtypes/ANY
source/dns/rdtypes/ANY
CSYNC.py
NSEC.py
70:92 (25%)
69:91 (25%)
view
21 x 2 source/dns
source/dns
zone.py
zone.py
658:681 (3%)
776:800 (3%)
view
19 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaNewInfr...
ElbHostnameAsTargetUsingLambdaNewInfr...
699:717 (1%)
758:776 (1%)
view
17 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaNewInfr...
ElbHostnameAsTargetUsingLambdaNewInfr...
509:525 (1%)
547:563 (1%)
view
16 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
139:155 (4%)
327:343 (1%)
view
16 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
112:127 (4%)
289:304 (1%)
view
15 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
70:84 (3%)
261:275 (1%)
view
15 x 2 deployment
deployment
ElbHostnameAsTargetCreateAlarm.yaml
ElbHostnameAsTargetCreateAlarm.yaml
52:66 (13%)
78:92 (13%)
view
13 x 2 source/dns/rdtypes/ANY
source/dns/rdtypes/ANY
CSYNC.py
NSEC3.py
70:82 (15%)
119:131 (9%)
view
13 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
316:329 (3%)
904:917 (1%)
view
13 x 2 source/dns/rdtypes/ANY
source/dns/rdtypes/ANY
NSEC.py
NSEC3.py
69:81 (14%)
119:131 (9%)
view
12 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
33:45 (3%)
74:86 (1%)
view
12 x 2 source/dns
source/dns
query.py
query.py
250:261 (4%)
357:368 (4%)
view
12 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
414:425 (3%)
1073:1084 (1%)
view
11 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaNewInfr...
ElbHostnameAsTargetUsingLambdaNewInfr...
720:730 (1%)
779:789 (1%)
view
11 x 2 deployment
deployment
ElbHostnameAsTargetUsingLambdaExistin...
ElbHostnameAsTargetUsingLambdaNewInfr...
85:95 (2%)
315:325 (1%)
view
10 x 2 source/dns/rdtypes/IN
source/dns/rdtypes
IPSECKEY.py
dnskeybase.py
90:99 (9%)
105:114 (13%)
view
10 x 2 source/dns/rdtypes/ANY
source/dns/rdtypes/ANY
CSYNC.py
NSEC.py
44:53 (11%)
43:52 (11%)
view