aws-samples / kinesis-auto-scaling
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
  • 6% duplication:
    • 5,776 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 400 duplicated lines
  • 32 duplicates
system6% (400 lines)
Duplication per Extension
yaml58% (260 lines)
tf37% (140 lines)
Duplication per Component (primary)
ROOT58% (260 lines)
terraform37% (140 lines)
golang/mocks/aws0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
28 x 2 terraform
terraform
stream.tf
stream.tf
46:76 (14%)
142:172 (14%)
view
27 x 2 terraform
terraform
stream.tf
stream.tf
70:101 (14%)
180:211 (14%)
view
26 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
279:304 (5%)
441:466 (5%)
view
24 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
387:410 (5%)
456:479 (5%)
view
24 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
330:353 (5%)
492:515 (5%)
view
24 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
225:248 (5%)
294:317 (5%)
view
22 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
214:235 (4%)
376:397 (4%)
view
21 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
407:427 (4%)
488:508 (4%)
view
21 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
245:265 (4%)
326:346 (4%)
view
20 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
249:268 (4%)
411:430 (4%)
view
17 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
330:346 (3%)
411:427 (3%)
view
17 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
249:265 (3%)
492:508 (3%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
294:304 (2%)
387:397 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
237:247 (2%)
468:478 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
306:316 (2%)
468:478 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
318:328 (2%)
480:490 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
237:247 (2%)
399:409 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
225:235 (2%)
456:466 (2%)
view
11 x 2 ROOT
ROOT
kinesis_scaling_cf.yaml
kinesis_scaling_cf.yaml
306:316 (2%)
399:409 (2%)
view
11 x 2 terraform
terraform
stream.tf
stream.tf
104:120 (5%)
220:236 (5%)
view
Duplicated Units
The list of top 14 duplicated units.
See data for all 14 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
172:182 
722:732 
view
10 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
222:232 
372:382 
view
10 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
272:282 
887:897 
view
10 x 2 golang/mocks/aws
golang/mocks/aws
mock_kinesis.go
mock_kinesis.go
555:565 
605:615 
view
9 x 5 golang/mocks/aws
golang/mocks/aws
golang/mocks/aws
golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
mock_sns.go
mock_cloudwatch.go
mock_kinesis.go
1371:1380 
1454:1463 
771:780 
271:280 
421:430 
view
9 x 4 golang/mocks/aws
golang/mocks/aws
golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
mock_cloudwatch.go
mock_kinesis.go
2770:2779 
2803:2812 
1754:1763 
1555:1564 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
142:148 
692:698 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
157:163 
707:713 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
192:198 
342:348 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
207:213 
357:363 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
242:248 
857:863 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_lambda.go
mock_lambda.go
257:263 
872:878 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_kinesis.go
mock_kinesis.go
525:531 
575:581 
view
6 x 2 golang/mocks/aws
golang/mocks/aws
mock_kinesis.go
mock_kinesis.go
540:546 
590:596 
view