awslabs / aws-greengrass-labs-iot-pubsub-framework
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
  • 9% duplication:
    • 546 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 7 duplicates
system9% (54 lines)
Duplication per Extension
py9% (54 lines)
Duplication per Component (primary)
src12% (28 lines)
src/pubsub8% (26 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src
src/pubsub
main.py
mqtt_pubsub.py
12:19 (3%)
15:23 (6%)
view
7 x 2 src/pubsub
src/pubsub
ipc_pubsub.py
mqtt_pubsub.py
13:21 (6%)
15:23 (6%)
view
7 x 2 src
src
main.py
main.py
192:200 (3%)
228:236 (3%)
view
7 x 2 src
src
main.py
main.py
192:200 (3%)
210:218 (3%)
view
7 x 2 src
src/pubsub
main.py
ipc_pubsub.py
12:19 (3%)
13:21 (6%)
view
7 x 2 src
src
main.py
main.py
210:218 (3%)
228:236 (3%)
view
6 x 2 src/pubsub
src/pubsub
pubsub_messages.py
pubsub_messages.py
73:78 (6%)
102:107 (6%)
view