aws-samples / kubeflow-on-eks-using-codepipeline
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
  • 25% duplication:
    • 3,625 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 925 duplicated lines
  • 85 duplicates
system25% (925 lines)
Duplication per Extension
yaml25% (925 lines)
Duplication per Component (primary)
infrastructure30% (363 lines)
pipeline35% (280 lines)
kubeflow24% (146 lines)
EFS22% (61 lines)
RDS9% (59 lines)
S311% (8 lines)
eks13% (8 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 85 duplicates...
Size#FoldersFilesLinesCode
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
537:576 (3%)
640:679 (3%)
view
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
640:679 (3%)
692:731 (3%)
view
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
537:576 (3%)
588:627 (3%)
view
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
537:576 (3%)
692:731 (3%)
view
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
588:627 (3%)
640:679 (3%)
view
40 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
588:627 (3%)
692:731 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
385:423 (3%)
436:474 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
385:423 (3%)
487:525 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
436:474 (3%)
487:525 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
334:372 (3%)
487:525 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
334:372 (3%)
385:423 (3%)
view
39 x 2 infrastructure
infrastructure
Infra-Setup-CFN.yaml
Infra-Setup-CFN.yaml
334:372 (3%)
436:474 (3%)
view
24 x 2 RDS
RDS
sample-rds.yaml
sample-rds.yaml
241:264 (4%)
270:293 (4%)
view
15 x 2 kubeflow
pipeline
buildspec.yaml
delete-buildspec.yaml
1:16 (83%)
1:16 (60%)
view
14 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
485:498 (1%)
544:557 (1%)
view
14 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
485:498 (1%)
513:526 (1%)
view
14 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
513:526 (1%)
544:557 (1%)
view
12 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
459:470 (1%)
632:643 (1%)
view
12 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
587:598 (1%)
632:643 (1%)
view
12 x 2 pipeline
pipeline
pipeline.yaml
pipeline.yaml
459:470 (1%)
587:598 (1%)
view