aws-samples / aws-iot-ota-deployment-tool
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
  • 5% duplication:
    • 1,126 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 61 duplicated lines
  • 4 duplicates
system5% (61 lines)
Duplication per Extension
py5% (61 lines)
Duplication per Component (primary)
src/aws_interfaces13% (32 lines)
src/lambda_handlers31% (29 lines)
deploy0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
16 x 2 src/aws_interfaces
src/aws_interfaces
alarm_interface.py
alarm_interface.py
73:88 (15%)
100:115 (15%)
view
10 x 2 src/lambda_handlers
src/lambda_handlers
metrics_generator.py
metrics_generator.py
34:43 (13%)
52:61 (13%)
view
9 x 2 src/lambda_handlers
src/lambda_handlers
metrics_generator.py
metrics_generator.py
19:27 (12%)
35:43 (12%)
view
9 x 2 src/lambda_handlers
src/lambda_handlers
metrics_generator.py
metrics_generator.py
19:27 (12%)
53:61 (12%)
view