aws-samples / sql-database-client-side-encryption-example-application
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
  • 26% duplication:
    • 3,096 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 814 duplicated lines
  • 67 duplicates
system26% (814 lines)
Duplication per Extension
yaml29% (784 lines)
py5% (18 lines)
html41% (12 lines)
Duplication per Component (primary)
cloudformation/templates29% (784 lines)
webapp/app81% (18 lines)
webapp/app/encryptioncontext/templates41% (12 lines)
webapp/app/encryptioncontext0% (0 lines)
webapp/app/encryptioncontext/static0% (0 lines)
webapp/app/codecompose0% (0 lines)
cloudformation/functions/source/dba-account-creation0% (0 lines)
cloudformation/functions/source/verify-iam-database-authentication0% (0 lines)
cloudformation/functions/source/database-resource-id-custom-resource0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 67 duplicates...
Size#FoldersFilesLinesCode
47 x 2 cloudformation/templates
cloudformation/templates
cfn.custom-resource.yaml
cfn.iamauthentication.yaml
14:62 (85%)
48:97 (27%)
view
38 x 2 cloudformation/templates
cloudformation/templates
cfn.fargate.yaml
cfn.fargate.yaml
524:561 (3%)
588:625 (3%)
view
36 x 2 cloudformation/templates
cloudformation/templates
cfn.client-side-encryption-replica.yaml
cfn.client-side-encryption.yaml
16:54 (30%)
13:51 (26%)
view
20 x 2 cloudformation/templates
cloudformation/templates
cfn.kms.yaml
cfn.kms.yaml
15:39 (15%)
82:101 (15%)
view
18 x 2 cloudformation/templates
cloudformation/templates
cfn.client-side-encryption-replica.yaml
cfn.client-side-encryption.yaml
55:73 (15%)
53:71 (13%)
view
16 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora-read-replica.yaml
cfn.client-side-encryption.yaml
35:51 (30%)
34:50 (11%)
view
16 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora-read-replica.yaml
cfn.client-side-encryption-replica.yaml
35:51 (30%)
37:53 (13%)
view
16 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.aurora.yaml
323:338 (3%)
341:356 (3%)
view
15 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.client-side-encryption.yaml
56:70 (3%)
34:48 (10%)
view
15 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora-read-replica.yaml
cfn.aurora.yaml
35:49 (28%)
56:70 (3%)
view
15 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.client-side-encryption-replica.yaml
56:70 (3%)
37:51 (12%)
view
14 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.aurora.yaml
412:425 (3%)
435:448 (3%)
view
14 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.aurora.yaml
412:425 (3%)
458:471 (3%)
view
14 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.aurora.yaml
435:448 (3%)
458:471 (3%)
view
11 x 2 cloudformation/templates
cloudformation/templates
cfn.fargate.yaml
cfn.fargate.yaml
507:517 (1%)
569:579 (1%)
view
11 x 2 cloudformation/templates
cloudformation/templates
cfn.client-side-encryption-replica.yaml
cfn.fargate.yaml
25:35 (9%)
52:62 (1%)
view
11 x 2 cloudformation/templates
cloudformation/templates
cfn.client-side-encryption.yaml
cfn.fargate.yaml
22:32 (7%)
52:62 (1%)
view
11 x 2 cloudformation/templates
cloudformation/templates
cfn.client-side-encryption-replica.yaml
cfn.client-side-encryption.yaml
102:112 (9%)
111:121 (7%)
view
10 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora-read-replica.yaml
cfn.aurora.yaml
51:64 (19%)
155:168 (2%)
view
10 x 2 cloudformation/templates
cloudformation/templates
cfn.aurora.yaml
cfn.fargate.yaml
221:230 (2%)
696:705 (1%)
view