aws / eks-charts
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
  • 47% duplication:
    • 11,692 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,508 duplicated lines
  • 1,018 duplicates
system47% (5,508 lines)
Duplication per Extension
yaml47% (5,049 lines)
tpl47% (459 lines)
Duplication per Component (primary)
appmesh-controller75% (3,076 lines)
aws-load-balancer-controller45% (585 lines)
aws-node-termination-handler45% (541 lines)
aws-calico28% (296 lines)
aws-vpc-cni47% (265 lines)
appmesh-prometheus27% (119 lines)
appmesh-jaeger36% (110 lines)
appmesh-grafana32% (105 lines)
appmesh-inject24% (96 lines)
appmesh-gateway25% (85 lines)
appmesh-spire-server21% (59 lines)
appmesh-spire-agent24% (59 lines)
aws-cloudwatch-metrics17% (41 lines)
aws-for-fluent-bit6% (35 lines)
aws-sigv4-proxy-admission-controller10% (22 lines)
csi-secrets-store-provider-aws5% (14 lines)

Duplication Between Components (50+ lines)

G appmesh-controller appmesh-controller aws-load-balancer-controller aws-load-balancer-controller appmesh-controller--aws-load-balancer-controller 524 appmesh-jaeger appmesh-jaeger appmesh-controller--appmesh-jaeger 134 appmesh-prometheus appmesh-prometheus appmesh-controller--appmesh-prometheus 134 appmesh-grafana appmesh-grafana appmesh-controller--appmesh-grafana 134 appmesh-inject appmesh-inject appmesh-controller--appmesh-inject 148 appmesh-gateway appmesh-gateway appmesh-controller--appmesh-gateway 110 appmesh-spire-agent appmesh-spire-agent appmesh-controller--appmesh-spire-agent 60 appmesh-spire-server appmesh-spire-server appmesh-controller--appmesh-spire-server 60 aws-node-termination-handler aws-node-termination-handler appmesh-controller--aws-node-termination-handler 94 aws-vpc-cni aws-vpc-cni appmesh-controller--aws-vpc-cni 58 aws-for-fluent-bit aws-for-fluent-bit appmesh-controller--aws-for-fluent-bit 54 appmesh-jaeger--appmesh-prometheus 218 appmesh-jaeger--appmesh-spire-agent 60 appmesh-jaeger--appmesh-spire-server 60 appmesh-jaeger--aws-node-termination-handler 80 appmesh-jaeger--aws-vpc-cni 58 appmesh-prometheus--appmesh-spire-agent 60 appmesh-prometheus--appmesh-spire-server 60 appmesh-prometheus--aws-node-termination-handler 80 appmesh-prometheus--aws-vpc-cni 58 appmesh-grafana--appmesh-jaeger 194 appmesh-grafana--appmesh-prometheus 208 appmesh-grafana--appmesh-inject 166 appmesh-grafana--appmesh-spire-agent 60 appmesh-grafana--appmesh-spire-server 60 appmesh-grafana--aws-node-termination-handler 80 appmesh-grafana--aws-vpc-cni 58 appmesh-inject--aws-load-balancer-controller 68 appmesh-inject--appmesh-jaeger 166 appmesh-inject--appmesh-prometheus 178 appmesh-inject--appmesh-spire-agent 60 appmesh-inject--appmesh-spire-server 60 appmesh-inject--aws-node-termination-handler 80 appmesh-inject--aws-vpc-cni 58 appmesh-gateway--appmesh-jaeger 122 appmesh-gateway--appmesh-prometheus 122 appmesh-gateway--appmesh-grafana 122 appmesh-gateway--appmesh-inject 122 appmesh-gateway--appmesh-spire-agent 72 appmesh-gateway--appmesh-spire-server 72 appmesh-gateway--aws-node-termination-handler 80 appmesh-gateway--aws-vpc-cni 58 appmesh-spire-agent--appmesh-spire-server 118 appmesh-spire-agent--aws-vpc-cni 58 appmesh-spire-server--aws-vpc-cni 58 aws-cloudwatch-metrics aws-cloudwatch-metrics aws-cloudwatch-metrics--aws-load-balancer-controller 58 aws-cloudwatch-metrics--aws-vpc-cni 78 aws-cloudwatch-metrics--aws-for-fluent-bit 58 aws-calico aws-calico aws-calico--aws-for-fluent-bit 72 aws-for-fluent-bit--aws-load-balancer-controller 58

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 1,018 duplicates...
Size#FoldersFilesLinesCode
248 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
2565:2812 (7%)
2815:3062 (7%)
view
190 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
177:366 (5%)
369:558 (5%)
view
112 x 2 stable/aws-vpc-cni
stable/aws-vpc-cni
test.yaml
values.yaml
7:170 (100%)
7:170 (100%)
view
109 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1398:1506 (3%)
1518:1626 (3%)
view
61 x 2 stable/aws-node-termination-handler/templates
stable/aws-node-termination-handler/templates
daemonset.linux.yaml
daemonset.windows.yaml
129:189 (26%)
103:163 (31%)
view
54 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
248:301 (1%)
2861:2914 (1%)
view
54 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
113:166 (1%)
2395:2448 (1%)
view
54 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
440:493 (1%)
2611:2664 (1%)
view
54 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
440:493 (1%)
2861:2914 (1%)
view
54 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
248:301 (1%)
2611:2664 (1%)
view
42 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
2349:2390 (1%)
2565:2606 (1%)
view
42 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
2349:2390 (1%)
2815:2856 (1%)
view
42 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
2521:2562 (1%)
2771:2812 (1%)
view
42 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
2521:2562 (1%)
3021:3062 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1838:1875 (1%)
2771:2808 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1878:1915 (1%)
3021:3058 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1918:1955 (1%)
3021:3058 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1838:1875 (1%)
3021:3058 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1838:1875 (1%)
1918:1955 (1%)
view
38 x 2 stable/appmesh-controller/crds
stable/appmesh-controller/crds
crds.yaml
crds.yaml
1838:1875 (1%)
1878:1915 (1%)
view