aws / aws-node-termination-handler
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
  • 69% duplication:
    • 32,870 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 22,876 duplicated lines
  • 9,994 duplicates
system69% (22,876 lines)
Duplication per Extension
yaml75% (22,715 lines)
go3% (84 lines)
tpl19% (77 lines)
Duplication per Component (primary)
config/helm74% (22,792 lines)
pkg/node13% (58 lines)
pkg/ec2metadata6% (14 lines)
pkg/monitor1% (12 lines)
pkg/interruptioneventstore0% (0 lines)
pkg/observability0% (0 lines)
pkg/config0% (0 lines)
pkg/uptime0% (0 lines)
pkg/webhook0% (0 lines)
cmd0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 9,994 duplicates...
Size#FoldersFilesLinesCode
1247 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
3604:4850 (25%)
5591:6837 (17%)
view
1200 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
3653:4852 (24%)
3789:4988 (23%)
view
1198 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
5640:6837 (17%)
3789:4986 (23%)
view
1065 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
1876:2940 (21%)
1897:2961 (21%)
view
1061 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
780:1840 (21%)
1194:2254 (15%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-alertmanagers.yaml
782:1840 (21%)
1882:2940 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
1196:2254 (15%)
684:1742 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
1196:2254 (15%)
1903:2961 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
1882:2940 (21%)
1196:2254 (15%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-thanosrulers.yaml
crd-thanosrulers.yaml
684:1742 (21%)
1903:2961 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
782:1840 (21%)
1903:2961 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
782:1840 (21%)
684:1742 (21%)
view
1059 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
1882:2940 (21%)
684:1742 (21%)
view
591 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
136:726 (8%)
43:633 (11%)
view
591 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
61:651 (12%)
136:726 (8%)
view
591 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-thanosrulers.yaml
61:651 (12%)
43:633 (11%)
view
276 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
1412:1687 (5%)
3008:3283 (3%)
view
276 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-alertmanagers.yaml
crd-prometheuses.yaml
2512:2787 (5%)
3008:3283 (3%)
view
276 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
3008:3283 (3%)
1314:1589 (5%)
view
276 x 2 config/helm/kube-prometheus-stack/crds
config/helm/kube-prometheus-stack/crds
crd-prometheuses.yaml
crd-thanosrulers.yaml
3008:3283 (3%)
2533:2808 (5%)
view