aws-quickstart / ssp-amazon-eks
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
  • 8% duplication:
    • 3,398 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 294 duplicated lines
  • 28 duplicates
system8% (294 lines)
Duplication per Extension
ts6% (163 lines)
yaml19% (131 lines)
Duplication per Component (primary)
lib/addons7% (172 lines)
lib/teams22% (56 lines)
lib/cluster-providers22% (36 lines)
lib/utils11% (30 lines)
lib0% (0 lines)
lib/pipelines0% (0 lines)
lib/resource-providers0% (0 lines)
lib/spi0% (0 lines)
lib/stacks0% (0 lines)
ci0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 28 duplicates...
Size#FoldersFilesLinesCode
11 x 2 lib/utils
lib/utils
cluster-utils.ts
cluster-utils.ts
23:34 (11%)
57:68 (11%)
view
11 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
360:370 (1%)
518:528 (1%)
view
9 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
314:323 (1%)
343:352 (1%)
view
9 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
240:249 (1%)
254:263 (1%)
view
8 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
451:458 (1%)
521:528 (1%)
view
8 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
396:403 (1%)
415:422 (1%)
view
8 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
377:384 (1%)
415:422 (1%)
view
8 x 2 lib/cluster-providers
lib/cluster-providers
fargate-cluster-provider.ts
mng-cluster-provider.ts
55:64 (25%)
107:116 (10%)
view
8 x 2 lib/utils
lib/utils
cluster-utils.ts
cluster-utils.ts
23:30 (8%)
40:47 (8%)
view
8 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
363:370 (1%)
451:458 (1%)
view
8 x 2 lib/addons/aws-loadbalancer-controller
lib/addons/aws-loadbalancer-controller
iam-policy.ts
iam-policy.ts
116:126 (4%)
189:199 (4%)
view
8 x 2 lib/utils
lib/utils
cluster-utils.ts
cluster-utils.ts
40:47 (8%)
57:64 (8%)
view
8 x 2 lib/teams
lib/teams
default-team-roles.ts
default-team-roles.ts
19:28 (8%)
87:96 (8%)
view
8 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
377:384 (1%)
396:403 (1%)
view
7 x 2 lib/cluster-providers
lib/cluster-providers
asg-cluster-provider.ts
mng-cluster-provider.ts
79:89 (15%)
104:114 (9%)
view
7 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
254:260 (1%)
268:274 (1%)
view
7 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
240:246 (1%)
268:274 (1%)
view
7 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
305:312 (1%)
334:341 (1%)
view
7 x 2 lib/addons/aws-loadbalancer-controller
lib/addons/aws-loadbalancer-controller
iam-policy.ts
iam-policy.ts
103:112 (3%)
158:167 (3%)
view
7 x 2 lib/addons/container-insights
lib/addons/container-insights
cwagent-fluentd-quickstart.yaml
cwagent-fluentd-quickstart.yaml
467:474 (1%)
480:487 (1%)
view