aws-samples / eks-install-guide-for-multus
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
  • 7% duplication:
    • 1,939 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 154 duplicated lines
  • 10 duplicates
system7% (154 lines)
Duplication per Extension
yaml8% (109 lines)
go15% (30 lines)
py5% (8 lines)
ts6% (7 lines)
Duplication per Component (primary)
controller/deploy50% (46 lines)
cfn/templates/nodegroup5% (41 lines)
controller/cmd15% (30 lines)
cfn/templates/infra4% (22 lines)
cdk/nodegroup/lambda5% (8 lines)
cdk/nodegroup/lib6% (7 lines)
cdk/nodegroup0% (0 lines)
controller0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
23 x 2 controller/deploy
controller/deploy
nginxconfigmap.yaml
nginxconfigmap2.yaml
6:34 (82%)
6:34 (82%)
view
8 x 2 cfn/templates/infra
cfn/templates/infra
eks-infra.yaml
eks-infra.yaml
380:387 (1%)
416:423 (1%)
view
8 x 2 controller/cmd
controller/cmd
webhook.go
webhook.go
124:133 (4%)
145:154 (4%)
view
8 x 2 cdk/nodegroup/lambda
cfn/templates/nodegroup
auto-reboot.py
eks-nodegroup-multus.yaml
14:23 (18%)
747:756 (1%)
view
7 x 2 cdk/nodegroup/lib
cfn/templates/nodegroup
eks-nodegroup-multus.ts
eks-nodegroup-multus.yaml
70:76 (6%)
670:676 (<1%)
view
7 x 2 cfn/templates/nodegroup
cfn/templates/nodegroup
eks-nodegroup-multus.yaml
eks-nodegroup-multus.yaml
428:434 (<1%)
637:643 (<1%)
view
7 x 2 controller/cmd
controller/cmd
webhook.go
webhook.go
116:122 (4%)
137:143 (4%)
view
6 x 2 cfn/templates/infra
cfn/templates/nodegroup
eks-infra.yaml
eks-nodegroup-multus.yaml
441:446 (1%)
655:660 (<1%)
view
6 x 2 cfn/templates/nodegroup
cfn/templates/nodegroup
eks-nodegroup-multus.yaml
eks-nodegroup-multus.yaml
454:459 (<1%)
655:660 (<1%)
view
6 x 2 cfn/templates/infra
cfn/templates/nodegroup
eks-infra.yaml
eks-nodegroup-multus.yaml
441:446 (1%)
454:459 (<1%)
view