aws-samples / digav-blueprint
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
  • 60% duplication:
    • 3,490 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,123 duplicated lines
  • 32 duplicates
system60% (2,123 lines)
Duplication per Extension
yaml78% (2,008 lines)
ts13% (82 lines)
py14% (33 lines)
Duplication per Component (primary)
config-packs78% (2,008 lines)
lib13% (82 lines)
scripts10% (33 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
257 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
654:910 (24%)
727:983 (22%)
view
242 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
315:556 (22%)
385:626 (21%)
view
79 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
104:182 (7%)
113:191 (6%)
view
76 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
187:262 (7%)
194:269 (6%)
view
55 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
971:1025 (5%)
1059:1113 (4%)
view
45 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
1031:1075 (4%)
1114:1158 (3%)
view
45 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
579:623 (4%)
653:697 (3%)
view
42 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
63:104 (3%)
56:97 (3%)
view
34 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
927:960 (3%)
1020:1053 (2%)
view
34 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
27:60 (3%)
23:56 (2%)
view
21 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
623:643 (1%)
707:727 (1%)
view
19 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
23:47 (19%)
51:75 (19%)
view
18 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
910:927 (1%)
993:1010 (1%)
view
17 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
563:579 (1%)
627:643 (1%)
view
13 x 2 scripts
scripts
enableorgscp-customlambdaresource.py
enableorgscp-customlambdaresource.py
21:36 (20%)
61:76 (20%)
view
11 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
291:301 (1%)
311:321 (<1%)
view
10 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
23:34 (10%)
87:98 (10%)
view
10 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
51:62 (10%)
87:98 (10%)
view
8 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
308:315 (<1%)
368:375 (<1%)
view
8 x 2 config-packs
config-packs
configpack.hipaa.bestpractices.yaml
configpack.nist.csf.bestpractices.yaml
301:308 (<1%)
351:358 (<1%)
view