aws-samples / amazon-kinesis-replay
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
  • 19% duplication:
    • 421 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 6 duplicates
system19% (82 lines)
Duplication per Extension
yml19% (82 lines)
Duplication per Component (primary)
cfn-templates19% (82 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
14 x 2 cfn-templates
cfn-templates
kinesis-replay-build-pipeline.yml
kinesis-replay-build-pipeline.yml
265:278 (4%)
311:324 (4%)
view
10 x 2 cfn-templates
cfn-templates
kinesis-replay-build-pipeline.yml
kinesis-replay-build-pipeline.yml
220:229 (3%)
316:325 (3%)
view
9 x 2 cfn-templates
cfn-templates
kinesis-replay-build-pipeline.yml
kinesis-replay-build-pipeline.yml
220:228 (3%)
270:278 (3%)
view
9 x 2 cfn-templates
cfn-templates
kinesis-replay-build-pipeline.yml
kinesis-replay-build-pipeline.yml
212:220 (3%)
254:262 (3%)
view
7 x 2 cfn-templates
cfn-templates
kinesis-replay-build-pipeline.yml
kinesis-replay-build-pipeline.yml
204:210 (2%)
246:252 (2%)
view
6 x 2 cfn-templates
cfn-templates
kinesis-replay-infrastructure.yml
kinesis-replay-infrastructure.yml
129:134 (4%)
136:141 (4%)
view