aws-samples / amazon-kinesis-analytics-streaming-etl
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
  • 12% duplication:
    • 506 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 63 duplicated lines
  • 10 duplicates
system12% (63 lines)
Duplication per Extension
ts13% (63 lines)
Duplication per Component (primary)
cdk/lib13% (63 lines)
cdk0% (0 lines)
cdk/lambda0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
316:326 (3%)
331:341 (3%)
view
7 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
331:338 (2%)
364:371 (2%)
view
7 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
316:323 (2%)
364:371 (2%)
view
7 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
290:296 (2%)
301:307 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
248:253 (2%)
268:273 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
238:243 (2%)
248:253 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
238:243 (2%)
258:263 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
248:253 (2%)
258:263 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
238:243 (2%)
268:273 (2%)
view
6 x 2 cdk/lib
cdk/lib
streaming-etl.ts
streaming-etl.ts
258:263 (2%)
268:273 (2%)
view