aws-samples / private-link-cross-account-access-for-msk
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
  • 47% duplication:
    • 1,583 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 759 duplicated lines
  • 36 duplicates
system47% (759 lines)
Duplication per Extension
yml58% (721 lines)
py10% (38 lines)
Duplication per Component (primary)
cftemplates58% (721 lines)
remoteaccountpython11% (26 lines)
ROOT8% (12 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 36 duplicates...
Size#FoldersFilesLinesCode
48 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
120:173 (16%)
96:149 (24%)
view
37 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
25:62 (12%)
4:41 (19%)
view
33 x 2 cftemplates
cftemplates
MSKBastionKafkaClientInstance.yml
MSKBastionKafkaClientInstanceLatestAM...
90:127 (21%)
148:185 (12%)
view
29 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
281:309 (9%)
172:200 (15%)
view
26 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKWithImports.yml
234:260 (8%)
73:99 (17%)
view
22 x 2 cftemplates
cftemplates
MSKWithImports.yml
MSKWithImports.yml
64:85 (14%)
97:118 (14%)
view
19 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKClusterWithVPC.yml
228:246 (6%)
258:276 (6%)
view
19 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
174:193 (6%)
151:170 (9%)
view
17 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKWithImports.yml
264:281 (5%)
106:123 (11%)
view
17 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKPrivateVPCOnly.yml
146:163 (5%)
97:114 (10%)
view
17 x 2 cftemplates
cftemplates
MSKPrivateVPCOnly.yml
MSKVPC.yml
97:114 (10%)
122:139 (8%)
view
16 x 2 cftemplates
cftemplates
MSKPrivateVPCOnly.yml
MSKVPC.yml
78:95 (9%)
103:120 (8%)
view
16 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKPrivateVPCOnly.yml
127:144 (5%)
78:95 (9%)
view
14 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
70:84 (4%)
47:61 (7%)
view
13 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKWithImports.yml
264:276 (4%)
73:85 (8%)
view
13 x 2 remoteaccountpython
remoteaccountpython
create-msk-vpc-endpoints.py
get-availabilityzones.py
93:105 (10%)
49:61 (20%)
view
13 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKWithImports.yml
234:246 (4%)
106:118 (8%)
view
12 x 2 cftemplates
cftemplates
MSKPrivateVPCOnly.yml
MSKVPC.yml
116:129 (7%)
141:154 (6%)
view
10 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
97:106 (3%)
74:83 (5%)
view
10 x 2 cftemplates
cftemplates
MSKClusterWithVPC.yml
MSKVPC.yml
108:117 (3%)
85:94 (5%)
view