freertos / coreJSON
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 35 units with 1,054 lines of code in units (84.4% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (114 lines of code)
    • 21 medium size units (751 lines of code)
    • 12 small units (189 lines of code)
    • 0 very small units (0 lines of code)
0% | 10% | 71% | 17% | 0%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 10% | 71% | 17% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 10% | 71% | 17% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
59 15 6
55 15 3
static bool nextKeyValuePair()
in source/core_json.c
47 11 7
static bool skipString()
in source/core_json.c
45 12 3
static bool skipEscape()
in source/core_json.c
44 17 3
JSONStatus_t JSON_Iterate()
in source/core_json.c
44 12 5
static JSONStatus_t iterate()
in source/core_json.c
43 10 8
static bool objectSearch()
in source/core_json.c
42 11 6
static bool arraySearch()
in source/core_json.c
41 9 5
static bool skipDigits()
in source/core_json.c
40 10 4
static bool skipUTF8MultiByte()
in source/core_json.c
39 10 3
JSONStatus_t JSON_SearchConst()
in source/core_json.c
39 10 7
static void skipObjectScalars()
in source/core_json.c
38 11 3
JSONStatus_t JSON_Validate()
in source/core_json.c
37 7 2
static bool skipOneHexEscape()
in source/core_json.c
33 11 4
static bool skipHexEscape()
in source/core_json.c
33 9 3
static bool skipNumber()
in source/core_json.c
32 8 3
static JSONTypes_t getType()
in source/core_json.c
29 7 1
static bool shortestUTF8()
in source/core_json.c
28 7 2
static bool nextValue()
in source/core_json.c
28 7 5