aws-samples / amazon-emr-on-eks-emr-studio
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
  • 31% duplication:
    • 976 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 310 duplicated lines
  • 13 duplicates
system31% (310 lines)
Duplication per Extension
yaml31% (310 lines)
Duplication per Component (primary)
templates31% (310 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
101 x 2 templates
templates
emr_studio_launch.yaml
emr_studio_launch.yaml
244:344 (20%)
350:450 (20%)
view
13 x 2 templates
templates
emr_studio_launch.yaml
emr_studio_launch.yaml
98:110 (2%)
230:242 (2%)
view
8 x 2 templates
templates
emr_studio_launch.yaml
emr_studio_launch.yaml
216:223 (1%)
440:447 (1%)
view
8 x 2 templates
templates
emr_studio_launch.yaml
emr_studio_launch.yaml
216:223 (1%)
334:341 (1%)
view
7 x 2 templates
templates
cf_vpc.yaml
cf_vpc.yaml
176:182 (3%)
193:199 (3%)
view
7 x 2 templates
templates
cf_vpc.yaml
cf_vpc.yaml
83:89 (3%)
100:106 (3%)
view
7 x 2 templates
templates
emr_studio_launch.yaml
iam_role_job_execution.yaml
234:240 (1%)
13:19 (14%)
view
7 x 2 templates
templates
emr_studio_launch.yaml
iam_role_job_execution.yaml
102:108 (1%)
13:19 (14%)
view
6 x 2 templates
templates
iam_policy_alb.yaml
iam_policy_alb.yaml
93:98 (3%)
143:148 (3%)
view
6 x 2 templates
templates
iam_policy_alb.yaml
iam_policy_alb.yaml
84:89 (3%)
120:125 (3%)
view
6 x 2 templates
templates
emr_studio_launch.yaml
iam_policy_alb.yaml
347:352 (1%)
9:14 (3%)
view
6 x 2 templates
templates
iam_policy_alb.yaml
s3-eks-policy.yaml
9:14 (3%)
16:21 (20%)
view
6 x 2 templates
templates
emr_studio_launch.yaml
s3-eks-policy.yaml
347:352 (1%)
16:21 (20%)
view