freertos / coreMQTT-Agent
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:
    • 975 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 11 duplicates
system9% (92 lines)
Duplication per Extension
c12% (86 lines)
h3% (6 lines)
Duplication per Component (primary)
source12% (86 lines)
source/include3% (6 lines)
ROOT0% (0 lines)
tools/cmock0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
10 x 2 source
source
core_mqtt_agent_command_functions.c
core_mqtt_agent_command_functions.c
89:101 (8%)
117:129 (8%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1143:1150 (1%)
1168:1175 (1%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1216:1223 (1%)
1310:1317 (1%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1216:1223 (1%)
1287:1294 (1%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1264:1271 (1%)
1310:1317 (1%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1216:1223 (1%)
1264:1271 (1%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1264:1271 (1%)
1287:1294 (1%)
view
6 x 2 source
source
core_mqtt_agent_command_functions.c
core_mqtt_agent_command_functions.c
179:187 (5%)
200:208 (5%)
view
6 x 2 source
source
core_mqtt_agent_command_functions.c
core_mqtt_agent_command_functions.c
104:111 (5%)
132:139 (5%)
view
6 x 2 source
source
core_mqtt_agent.c
core_mqtt_agent.c
1287:1294 (1%)
1310:1317 (1%)
view
6 x 2 source
source/include
core_mqtt_agent.c
core_mqtt_agent.h
946:951 (1%)
319:324 (6%)
view