aws-samples / mirrormaker2-msk-migration
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
  • 37% duplication:
    • 774 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 292 duplicated lines
  • 11 duplicates
system37% (292 lines)
Duplication per Extension
yml37% (292 lines)
Duplication per Component (primary)
CFTemplates37% (292 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
84 x 2 CFTemplates
CFTemplates
MSKBastionKafkaClientCluster.yml
MSKBastionKafkaClientCluster.yml
101:206 (22%)
234:340 (22%)
view
22 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
90:111 (9%)
123:144 (9%)
view
22 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
152:173 (9%)
185:206 (9%)
view
16 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
90:105 (6%)
152:167 (6%)
view
16 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
123:138 (6%)
185:200 (6%)
view
16 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
123:138 (6%)
152:167 (6%)
view
16 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
90:105 (6%)
185:200 (6%)
view
8 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
107:114 (3%)
169:176 (3%)
view
7 x 2 CFTemplates
CFTemplates
MSKBastionKafkaClientCluster.yml
MSKBastionKafkaClientCluster.yml
86:92 (1%)
219:225 (1%)
view
7 x 2 CFTemplates
CFTemplates
MSKPrivateVPCOnly.yml
MSKPrivateVPCOnly.yml
26:32 (4%)
39:45 (4%)
view
6 x 2 CFTemplates
CFTemplates
MSKClusterWithImports.yml
MSKClusterWithImports.yml
140:145 (2%)
202:207 (2%)
view