aws-samples / aws-cudos-framework-deployment
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:
    • 4,182 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 404 duplicated lines
  • 37 duplicates
system9% (404 lines)
Duplication per Extension
yml15% (334 lines)
py3% (58 lines)
yaml4% (12 lines)
Duplication per Component (primary)
cfn-templates15% (334 lines)
cid/helpers2% (30 lines)
cid4% (28 lines)
cid/builtin/core/data4% (12 lines)
ROOT0% (0 lines)
cid/builtin0% (0 lines)
cid/builtin/core0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 37 duplicates...
Size#FoldersFilesLinesCode
26 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1399:1424 (1%)
1601:1626 (1%)
view
18 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1609:1626 (<1%)
1935:1952 (<1%)
view
18 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1407:1424 (<1%)
1935:1952 (<1%)
view
17 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1494:1510 (<1%)
1702:1718 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1703:1718 (<1%)
1937:1952 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1409:1424 (<1%)
1495:1510 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1409:1424 (<1%)
1703:1718 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1611:1626 (<1%)
1703:1718 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1495:1510 (<1%)
1937:1952 (<1%)
view
16 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1495:1510 (<1%)
1611:1626 (<1%)
view
15 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1977:1992 (<1%)
2015:2030 (<1%)
view
15 x 2 cid/helpers
cid/helpers
account_map.py
cur.py
33:49 (6%)
33:49 (14%)
view
14 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1960:1973 (<1%)
2000:2013 (<1%)
view
14 x 2 cid
cid
common.py
common.py
221:235 (2%)
362:376 (2%)
view
13 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
62:74 (<1%)
2039:2051 (<1%)
view
12 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
76:87 (<1%)
2053:2064 (<1%)
view
10 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1399:1408 (<1%)
1817:1826 (<1%)
view
10 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1601:1610 (<1%)
1817:1826 (<1%)
view
10 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1531:1540 (<1%)
1643:1652 (<1%)
view
9 x 2 cfn-templates
cfn-templates
cudos-cfn.yml
cudos-cfn.yml
1532:1540 (<1%)
1736:1744 (<1%)
view