aws-samples / eks-bootstrap-scripts
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
  • 11% duplication:
    • 1,857 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 14 duplicates
system11% (210 lines)
Duplication per Extension
yaml13% (174 lines)
py7% (36 lines)
Duplication per Component (primary)
01_eks-bootstrap-helm/stable/helm/templates11% (143 lines)
02_bootstrap-scripts-python/bootstrap7% (36 lines)
01_eks-bootstrap-helm/stable/helm26% (31 lines)
01_eks-bootstrap-helm0% (0 lines)
02_bootstrap-scripts-python0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
26 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
prometheus-scrape-config-configmap.yaml
prometheus-scrape-config-configmap.yaml
89:114 (9%)
129:154 (9%)
view
25 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
prometheus-scrape-config-configmap.yaml
prometheus-scrape-config-configmap.yaml
90:114 (9%)
236:260 (9%)
view
25 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
prometheus-scrape-config-configmap.yaml
prometheus-scrape-config-configmap.yaml
130:154 (9%)
236:260 (9%)
view
18 x 2 02_bootstrap-scripts-python/bootstrap
02_bootstrap-scripts-python/bootstrap
context.py
context.py
178:196 (7%)
216:234 (7%)
view
10 x 2 01_eks-bootstrap-helm/stable/helm
01_eks-bootstrap-helm/stable/helm
values.yaml
values.yaml
51:60 (11%)
66:75 (11%)
view
10 x 2 01_eks-bootstrap-helm/stable/helm
01_eks-bootstrap-helm/stable/helm
values.yaml
values.yaml
37:46 (11%)
52:61 (11%)
view
9 x 2 01_eks-bootstrap-helm/stable/helm
01_eks-bootstrap-helm/stable/helm
values.yaml
values.yaml
37:45 (10%)
67:75 (10%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
45:50 (2%)
189:194 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
146:152 (2%)
243:249 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
109:115 (2%)
120:126 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
7:12 (2%)
300:305 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
109:115 (2%)
202:208 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
fluent-bit-configmap.yaml
fluent-bit-configmap.yaml
120:126 (2%)
202:208 (2%)
view
6 x 2 01_eks-bootstrap-helm/stable/helm/templates
01_eks-bootstrap-helm/stable/helm/templates
cloudwatch-clusterrole.yaml
cloudwatch-role.yaml
6:11 (20%)
7:12 (37%)
view