aws-samples / airflow-for-amazon-eks-blog
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
  • 87% duplication:
    • 733 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 645 duplicated lines
  • 17 duplicates
system87% (645 lines)
Duplication per Extension
yaml90% (645 lines)
Duplication per Component (primary)
kube/templates85% (320 lines)
kube/build91% (277 lines)
kube87% (48 lines)

Duplication Between Components (50+ lines)

G kube/build kube/build kube/templates kube/templates kube/build--kube/templates 530 kube kube kube/templates--kube 96

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
71 x 2 scripts/kube/build
scripts/kube/templates
configmaps.yaml
configmaps.template.yaml
175:331 (47%)
175:331 (47%)
view
61 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
20:81 (40%)
20:81 (40%)
view
55 x 2 scripts/kube/build
scripts/kube/templates
configmaps.yaml
configmaps.template.yaml
26:158 (36%)
26:158 (36%)
view
27 x 2 scripts/kube/templates
scripts/kube
volumes.template.yaml
volumes.yaml
21:47 (65%)
21:47 (65%)
view
24 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
148:171 (15%)
148:171 (15%)
view
19 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
104:122 (12%)
104:122 (12%)
view
18 x 2 scripts/kube/build
scripts/kube/build
airflow.yaml
airflow.yaml
109:126 (11%)
131:148 (11%)
view
18 x 2 scripts/kube/templates
scripts/kube/templates
airflow.template.yaml
airflow.template.yaml
109:126 (11%)
131:148 (11%)
view
16 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
129:144 (10%)
129:144 (10%)
view
14 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
131:144 (9%)
109:122 (9%)
view
14 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
109:122 (9%)
131:144 (9%)
view
13 x 2 scripts/kube/templates
scripts/kube
volumes.template.yaml
volumes.yaml
49:61 (31%)
49:61 (31%)
view
11 x 2 scripts/kube/build
scripts/kube/templates
airflow.yaml
airflow.template.yaml
89:99 (7%)
89:99 (7%)
view
8 x 2 scripts/kube
scripts/kube/templates
secrets.yaml
secrets.template.yaml
17:24 (88%)
17:24 (88%)
view
8 x 2 scripts/kube/build
scripts/kube/templates
configmaps.yaml
configmaps.template.yaml
17:24 (5%)
17:24 (5%)
view
6 x 2 scripts/kube/build
scripts/kube/build
airflow.yaml
airflow.yaml
84:89 (3%)
119:124 (3%)
view
6 x 2 scripts/kube/build
scripts/kube/build
airflow.yaml
airflow.yaml
84:89 (3%)
141:146 (3%)
view