freertos / FreeRTOS-Cellular-Interface-Community-Supported-Ports
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 187 units with 6,267 lines of code in units (95.4% of code).
    • 3 very long units (464 lines of code)
    • 43 long units (2,800 lines of code)
    • 60 medium size units (2,163 lines of code)
    • 33 small units (540 lines of code)
    • 48 very small units (300 lines of code)
7% | 44% | 34% | 8% | 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% | 44% | 34% | 8% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
sim70x08% | 46% | 32% | 8% | 4%
qgsm6% | 42% | 37% | 8% | 4%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static bool _parseSignalQuality()
in sim70x0/cellular_sim70x0_api.c
184 24 2
static bool _parseSignalQuality()
in qgsm/cellular_qgsm_api.c
179 20 2
CellularError_t Cellular_ModuleEnableUE()
in sim70x0/cellular_sim70x0.c
101 13 1
static CellularPktStatus_t socketRecvDataPrefix()
in sim70x0/cellular_sim70x0_api.c
100 21 5
CellularPktStatus_t _Cellular_ParseSimstat()
in sim70x0/cellular_sim70x0_urc_handler.c
88 17 2
81 17 4
static CellularPktStatus_t _parseUrcIndicationCsq()
in sim70x0/cellular_sim70x0_urc_handler.c
78 16 2
static CellularPktStatus_t _parseUrcIndicationCsq()
in qgsm/cellular_qgsm_urc_handler.c
77 16 2
77 15 5
CellularError_t Cellular_GetHostByName()
in qgsm/cellular_qgsm_api.c
76 11 4
CellularError_t Cellular_GetHostByName()
in sim70x0/cellular_sim70x0_api.c
76 12 4
static CellularPktStatus_t _parseSocketOpenNextTok()
in sim70x0/cellular_sim70x0_urc_handler.c
75 7 3
CellularError_t Cellular_ActivatePdn()
in sim70x0/cellular_sim70x0_api.c
74 12 2
CellularError_t Cellular_SetPdnConfig()
in sim70x0/cellular_sim70x0_api.c
74 11 3
72 14 4
71 18 4
71 18 4
static void _Cellular_ProcessSocketState()
in sim70x0/cellular_sim70x0_urc_handler.c
68 12 2
67 6 2
CellularError_t Cellular_SocketRecv()
in sim70x0/cellular_sim70x0_api.c
67 9 5