freertos / FreeRTOS-Cellular-Interface
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 440 units with 15,007 lines of code in units (87.1% of code).
    • 9 very long units (1,186 lines of code)
    • 92 long units (5,922 lines of code)
    • 177 medium size units (6,159 lines of code)
    • 66 small units (1,126 lines of code)
    • 96 very small units (614 lines of code)
7% | 39% | 41% | 7% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c7% | 39% | 41% | 7% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
modules/sara_r414% | 56% | 19% | 3% | 5%
modules/hl780210% | 43% | 35% | 5% | 5%
source4% | 27% | 56% | 9% | 2%
modules/bg965% | 42% | 38% | 9% | 3%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static bool _parseSignalQuality()
in modules/bg96/cellular_bg96_api.c
197 20 2
173 28 4
144 5 4
CellularError_t Cellular_SetPdnConfig()
in modules/sara_r4/cellular_r4_api.c
118 17 3
116 23 4
CellularError_t Cellular_ModuleEnableUE()
in modules/hl7802/cellular_hl7802.c
112 17 1
CellularError_t _Cellular_LibInit()
in source/cellular_common.c
110 18 3
110 22 4
static CellularPktStatus_t socketRecvDataPrefix()
in modules/sara_r4/cellular_r4_api.c
106 13 5
CellularError_t Cellular_DeactivatePdn()
in modules/sara_r4/cellular_r4_api.c
95 17 2
static bool _parseExtendedSignalQuality()
in modules/sara_r4/cellular_r4_api.c
95 21 2
CellularError_t Cellular_SocketSend()
in modules/hl7802/cellular_hl7802_api.c
95 15 5
CellularError_t Cellular_SocketRecv()
in modules/hl7802/cellular_hl7802_api.c
93 15 5
92 12 4
CellularError_t Cellular_ModuleEnableUE()
in modules/bg96/cellular_bg96.c
86 14 1
CellularError_t Cellular_SocketSend()
in modules/sara_r4/cellular_r4_api.c
85 15 5
static CellularATError_t parseEidrxToken()
in modules/hl7802/cellular_hl7802_api.c
84 19 4
static void _cellular_UrcProcessUusoco()
in modules/sara_r4/cellular_r4_urc_handler.c
82 17 2
CellularError_t Cellular_SocketRecv()
in modules/sara_r4/cellular_r4_api.c
80 12 5
CellularError_t Cellular_ModuleEnableUE()
in modules/sara_r4/cellular_r4.c
79 12 1