aws-samples / amazon-aurora-labs-for-mysql
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
  • 77% duplication:
    • 6,070 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,729 duplicated lines
  • 340 duplicates
system77% (4,729 lines)
Duplication per Extension
yml85% (4,379 lines)
py39% (350 lines)
Duplication per Component (primary)
templates96% (2,946 lines)
taskcat/templates91% (1,126 lines)
website/template40% (289 lines)
scripts39% (283 lines)
support40% (67 lines)
taskcat/ci42% (18 lines)
website/lambda/indexdoc-function/src0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G taskcat/templates taskcat/templates templates templates taskcat/templates--templates 343 scripts scripts support support scripts--support 142

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 340 duplicates...
Size#FoldersFilesLinesCode
522 x 2 templates
templates
lab_template-old.yml
lab_template.yml
144:704 (34%)
146:706 (33%)
view
456 x 2 taskcat/templates
taskcat/templates
lab-no-cluster.yml
lab-with-cluster.yml
1:529 (82%)
1:535 (67%)
view
279 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1272:1616 (18%)
1369:1713 (17%)
view
252 x 2 templates
templates
lab_template-old.yml
lab_template.yml
954:1232 (16%)
1046:1324 (16%)
view
115 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1:140 (7%)
1:140 (7%)
view
111 x 2 templates
templates
lab_template-old.yml
lab_template.yml
811:934 (7%)
824:947 (7%)
view
58 x 2 templates
templates
lab_template-old.yml
lab_template.yml
723:784 (3%)
727:788 (3%)
view
43 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1646:1688 (2%)
1717:1759 (2%)
view
43 x 2 taskcat/templates
taskcat/templates
lab-no-cluster.yml
lab-with-cluster.yml
583:628 (7%)
722:767 (6%)
view
38 x 2 scripts
scripts
aware_failover.py
simple_failover.py
165:236 (30%)
92:159 (41%)
view
35 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1233:1271 (2%)
1329:1367 (2%)
view
25 x 2 templates
templates
lab_template-old.yml
lab_template.yml
786:810 (1%)
798:822 (1%)
view
25 x 2 taskcat/templates
taskcat/templates
lab-no-cluster.yml
lab-with-cluster.yml
532:560 (4%)
546:574 (3%)
view
22 x 2 templates
templates
lab_template.yml
lab_template.yml
1287:1308 (1%)
1520:1541 (1%)
view
22 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1195:1216 (1%)
1520:1541 (1%)
view
22 x 2 templates
templates
lab_template-old.yml
lab_template.yml
1423:1444 (1%)
1287:1308 (1%)
view
22 x 2 templates
templates
lab_template-old.yml
lab_template-old.yml
1195:1216 (1%)
1423:1444 (1%)
view
22 x 2 website/template
website/template
site.yml
site.yml
429:450 (3%)
549:570 (3%)
view
20 x 2 website/template
website/template
site.yml
site.yml
403:422 (2%)
523:542 (2%)
view
18 x 2 taskcat/templates
templates
lab-no-cluster.yml
lab_template-old.yml
595:612 (3%)
1088:1105 (1%)
view