aws-quickstart / quickstart-aws-fintech-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
  • 30% duplication:
    • 3,967 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,203 duplicated lines
  • 71 duplicates
system30% (1,203 lines)
Duplication per Extension
yaml37% (1,072 lines)
ts10% (82 lines)
py18% (49 lines)
Duplication per Component (primary)
config-packs37% (1,072 lines)
lib10% (82 lines)
scripts10% (33 lines)
ROOT39% (16 lines)
lib/serviceCatalogShimRepo0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 71 duplicates...
Size#FoldersFilesLinesCode
83 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
1074:1156 (7%)
1264:1346 (6%)
view
36 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
507:542 (3%)
605:640 (2%)
view
34 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
785:818 (2%)
915:948 (2%)
view
28 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
835:862 (2%)
983:1010 (2%)
view
19 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
24:48 (19%)
52:76 (19%)
view
13 x 2 scripts
scripts
enableorgscp-customlambdaresource.py
enableorgscp-customlambdaresource.py
21:36 (20%)
61:76 (20%)
view
12 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
1047:1058 (1%)
1252:1263 (<1%)
view
11 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
752:762 (<1%)
865:875 (<1%)
view
10 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
24:35 (10%)
88:99 (10%)
view
10 x 2 lib
lib
aws-vpcs.ts
aws-vpcs.ts
52:63 (10%)
88:99 (10%)
view
9 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
731:739 (<1%)
826:834 (<1%)
view
9 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
430:438 (<1%)
532:540 (<1%)
view
9 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
304:312 (<1%)
377:385 (<1%)
view
8 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
667:674 (<1%)
763:770 (<1%)
view
8 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
550:557 (<1%)
656:663 (<1%)
view
8 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
896:903 (<1%)
1063:1070 (<1%)
view
8 x 2 ROOT
ROOT
ApplyCfnLintExceptions.py
ApplyCfnLintExceptions.py
9:17 (22%)
34:42 (22%)
view
8 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
134:141 (<1%)
173:180 (<1%)
view
8 x 2 config-packs
config-packs
configpack.nist.csf.bestpractices.yaml
configpack.pci.bestpractices.yaml
315:322 (<1%)
394:401 (<1%)
view
8 x 2 config-packs
config-packs
configpack.pci.bestpractices.yaml
configpack.pci.bestpractices.yaml
249:256 (<1%)
521:528 (<1%)
view