awslabs / aws-greengrass-labs-bluetooth-gateway
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
  • 3% duplication:
    • 1,141 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 38 duplicated lines
  • 7 duplicates
system3% (38 lines)
Duplication per Extension
py3% (38 lines)
Duplication per Component (primary)
src/ble6% (18 lines)
src/ipc_pubsub6% (14 lines)
src2% (6 lines)
esp32-ble-device/ble0% (0 lines)
esp32-ble-device0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/ipc_pubsub
src/ipc_pubsub
ipc_topic_pubsub.py
mqtt_core_pubsub.py
13:21 (6%)
12:20 (6%)
view
6 x 2 src/ble
src/ble
ble_scanner.py
ble_uart_controller.py
9:20 (11%)
13:27 (6%)
view
6 x 2 src/ble
src
ble_scanner.py
main.py
9:20 (11%)
7:28 (2%)
view
6 x 2 src/ble
src
ble_uart_controller.py
main.py
13:27 (6%)
7:28 (2%)
view
6 x 2 src/ble
src/ble
ble_scanner.py
ble_uart_peripheral.py
9:20 (11%)
5:21 (4%)
view
6 x 2 src/ble
src/ble
ble_uart_controller.py
ble_uart_peripheral.py
13:27 (6%)
5:21 (4%)
view
6 x 2 src/ble
src
ble_uart_peripheral.py
main.py
5:21 (4%)
7:28 (2%)
view