aws-quickstart / quickstart-swift-digital-connectivity
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
  • 10% duplication:
    • 963 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 98 duplicated lines
  • 7 duplicates
system10% (98 lines)
Duplication per Extension
py10% (98 lines)
Duplication per Component (primary)
security17% (52 lines)
swift_iam_role18% (16 lines)
base_host_group12% (12 lines)
network2% (6 lines)
swift_database20% (6 lines)
swift_mq14% (6 lines)
swift_amh0% (0 lines)
cmk0% (0 lines)
swift_sagsnl0% (0 lines)
ROOT0% (0 lines)
swift_main_stack0% (0 lines)
utilities0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
9 x 2 security
security
generic_security.py
generic_security.py
137:145 (6%)
148:156 (6%)
view
8 x 2 swift_iam_role
swift_iam_role
swift_iam_role.py
swift_iam_role.py
30:38 (9%)
72:79 (9%)
view
7 x 2 security
security
swift_security.py
swift_security.py
87:93 (4%)
113:119 (4%)
view
7 x 2 security
security
swift_security.py
swift_security.py
95:101 (4%)
122:128 (4%)
view
6 x 2 network
security
swift_vpc_endpoints.py
generic_security.py
101:106 (5%)
57:62 (4%)
view
6 x 2 swift_database
swift_mq
swift_database.py
swift_mq.py
16:21 (20%)
16:21 (14%)
view
6 x 2 base_host_group
base_host_group
host_group.py
host_group.py
39:44 (6%)
49:54 (6%)
view