aws-samples / amazon-eks-one-click-cluster-upgrade
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
  • 9% duplication:
    • 2,766 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 260 duplicated lines
  • 14 duplicates
system9% (260 lines)
Duplication per Extension
py9% (244 lines)
yaml8% (16 lines)
Duplication per Component (primary)
eksupdate/src9% (224 lines)
eksupdate9% (20 lines)
eksupdate/src/S3Files8% (16 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
49 x 2 eksupdate/src
eksupdate/src
eksctlfinal.py
k8s_client.py
35:92 (17%)
32:89 (13%)
view
9 x 2 eksupdate/src
eksupdate/src
preflight_module.py
preflight_module.py
1035:1043 (<1%)
1069:1077 (<1%)
view
9 x 2 eksupdate/src
eksupdate/src
ekslogs.py
ekslogs.py
59:67 (19%)
72:80 (19%)
view
8 x 2 eksupdate/src
eksupdate
k8s_client.py
starter.py
14:23 (2%)
15:24 (3%)
view
8 x 2 eksupdate/src/S3Files
eksupdate/src/S3Files
vpc-cni.yaml
vpc-cni.yaml
27:34 (4%)
41:48 (4%)
view
7 x 2 eksupdate/src
eksupdate/src
preflight_module.py
preflight_module.py
1045:1051 (<1%)
1079:1085 (<1%)
view
7 x 2 eksupdate/src
eksupdate/src
boto_aws.py
eks_get_image_type.py
460:467 (1%)
30:37 (12%)
view
6 x 2 eksupdate/src
eksupdate/src
boto_aws.py
boto_aws.py
34:40 (1%)
241:247 (1%)
view
6 x 2 eksupdate/src
eksupdate/src
boto_aws.py
boto_aws.py
241:247 (1%)
320:327 (1%)
view
6 x 2 eksupdate/src
eksupdate/src
eksctlfinal.py
eksctlfinal.py
209:214 (2%)
242:247 (2%)
view
6 x 2 eksupdate/src
eksupdate/src
preflight_module.py
preflight_module.py
1223:1228 (<1%)
1237:1242 (<1%)
view
6 x 2 eksupdate
eksupdate
starter.py
starter.py
31:37 (2%)
42:48 (2%)
view
6 x 2 eksupdate/src
eksupdate/src
boto_aws.py
boto_aws.py
34:40 (1%)
320:327 (1%)
view
6 x 2 eksupdate/src
eksupdate/src
boto_aws.py
boto_aws.py
91:96 (1%)
202:208 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
33 x 2 eksupdate/src
eksupdate/src
k8s_client.py
eksctlfinal.py
0:0 
0:0 
view
14 x 2 eksupdate/src
eksupdate/src
k8s_client.py
eksctlfinal.py
0:0 
0:0 
view