aws-samples / amazon-eks-using-cdk-typescript
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,177 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 196 duplicated lines
  • 23 duplicates
system9% (196 lines)
Duplication per Extension
yaml11% (100 lines)
ts8% (96 lines)
Duplication per Component (primary)
manifests11% (100 lines)
lib/policies20% (96 lines)
lib0% (0 lines)
lib/custom-resources0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
10 x 2 manifests
manifests
metricServerManifest.yaml
metricServerManifest.yaml
62:71 (5%)
77:86 (5%)
view
9 x 2 lib/policies
lib/policies
policies.ts
policies.ts
196:204 (1%)
227:235 (1%)
view
9 x 2 lib/policies
lib/policies
policies.ts
policies.ts
210:218 (1%)
241:249 (1%)
view
8 x 2 manifests
manifests
otelContainerInsights.yaml
otelContainerInsights.yaml
93:100 (3%)
102:109 (3%)
view
8 x 2 lib/policies
lib/policies
policies.ts
policies.ts
394:401 (1%)
475:482 (1%)
view
7 x 2 lib/policies
lib/policies
policies.ts
policies.ts
380:386 (1%)
442:448 (1%)
view
7 x 2 lib/policies
lib/policies
policies.ts
policies.ts
167:173 (1%)
243:249 (1%)
view
7 x 2 lib/policies
lib/policies
policies.ts
policies.ts
187:193 (1%)
489:495 (1%)
view
7 x 2 lib/policies
lib/policies
policies.ts
policies.ts
167:173 (1%)
212:218 (1%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
187:192 (1%)
212:217 (1%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
167:172 (1%)
489:494 (1%)
view
6 x 2 manifests
manifests
metricServerManifest.yaml
metricServerManifest.yaml
26:31 (3%)
46:51 (3%)
view
6 x 2 manifests
manifests
fluentBitSetup.yaml
fluentBitSetup.yaml
76:81 (1%)
148:153 (1%)
view
6 x 2 manifests
manifests
fluentBitSetup.yaml
fluentBitSetup.yaml
89:95 (1%)
184:190 (1%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
212:217 (1%)
489:494 (1%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
187:192 (1%)
243:248 (1%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
243:248 (1%)
489:494 (1%)
view
6 x 2 manifests
manifests
metricServerManifest.yaml
metricServerManifest.yaml
99:104 (3%)
115:120 (3%)
view
6 x 2 lib/policies
lib/policies
policies.ts
policies.ts
146:151 (1%)
164:169 (1%)
view
6 x 2 manifests
manifests
fluentBitSetup.yaml
fluentBitSetup.yaml
184:190 (1%)
195:201 (1%)
view