freertos / coreMQTT
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 85 units with 3,582 lines of code in units (84.4% of code).
    • 0 very long units (0 lines of code)
    • 23 long units (1,478 lines of code)
    • 52 medium size units (1,946 lines of code)
    • 9 small units (153 lines of code)
    • 1 very small units (5 lines of code)
0% | 41% | 54% | 4% | <1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 41% | 54% | 4% | <1%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 41% | 54% | 4% | <1%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static int32_t sendPacket()
in source/core_mqtt.c
86 9 3
static bool validateTransitionPublish()
in source/core_mqtt_state.c
85 22 4
MQTTStatus_t MQTT_Connect()
in source/core_mqtt.c
80 11 5
78 14 5
static void serializeConnectPacket()
in source/core_mqtt_serializer.c
77 11 4
static void serializePublishCommon()
in source/core_mqtt_serializer.c
73 4 5
MQTTStatus_t MQTT_SerializePublish()
in source/core_mqtt_serializer.c
70 15 4
MQTTStatus_t MQTT_SerializePublishHeader()
in source/core_mqtt_serializer.c
67 14 5
static bool matchWildcards()
in source/core_mqtt.c
67 15 7
65 7 2
static void serializePublishCommon()
in source/core_mqtt_serializer.c
62 10 5
MQTTStatus_t MQTT_UpdateStateAck()
in source/core_mqtt_state.c
62 8 5
MQTTStatus_t MQTT_DeserializeAck()
in source/core_mqtt_serializer.c
59 17 3
static MQTTStatus_t deserializeConnack()
in source/core_mqtt_serializer.c
58 8 2
MQTTStatus_t MQTT_UpdateStatePublish()
in source/core_mqtt_state.c
58 11 5
MQTTStatus_t MQTT_GetConnectPacketSize()
in source/core_mqtt_serializer.c
57 11 4
static MQTTStatus_t deserializePublish()
in source/core_mqtt_serializer.c
56 9 3
static int32_t sendPacket()
in source/core_mqtt.c
55 7 3
static int32_t recvExact()
in source/core_mqtt.c
55 6 2
MQTTStatus_t MQTT_Publish()
in source/core_mqtt.c
53 11 3