freertos / coreJSON
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 35 units with 1,054 lines of code in units (84.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (407 lines of code)
    • 18 simple units (533 lines of code)
    • 8 very simple units (114 lines of code)
0% | 0% | 38% | 50% | 10%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
c0% | 0% | 38% | 50% | 10%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source0% | 0% | 38% | 50% | 10%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static bool skipEscape()
in source/core_json.c
44 17 3
55 15 3
59 15 6
static bool skipString()
in source/core_json.c
45 12 3
JSONStatus_t JSON_Iterate()
in source/core_json.c
44 12 5
static bool skipOneHexEscape()
in source/core_json.c
33 11 4
static void skipObjectScalars()
in source/core_json.c
38 11 3
static bool nextKeyValuePair()
in source/core_json.c
47 11 7
static bool objectSearch()
in source/core_json.c
42 11 6
static bool skipUTF8MultiByte()
in source/core_json.c
39 10 3
static bool skipDigits()
in source/core_json.c
40 10 4
static void skipExponent()
in source/core_json.c
20 10 3
JSONStatus_t JSON_SearchConst()
in source/core_json.c
39 10 7
static JSONStatus_t iterate()
in source/core_json.c
43 10 8
static bool skipHexEscape()
in source/core_json.c
33 9 3
static bool arraySearch()
in source/core_json.c
41 9 5
static bool skipNumber()
in source/core_json.c
32 8 3
static bool shortestUTF8()
in source/core_json.c
28 7 2
static bool skipSpaceAndComma()
in source/core_json.c
21 7 3
JSONStatus_t JSON_Validate()
in source/core_json.c
37 7 2