aws / Jobs-for-AWS-IoT-embedded-sdk
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 17 units with 380 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (88 lines of code)
    • 6 simple units (156 lines of code)
    • 9 very simple units (136 lines of code)
0% | 0% | 23% | 41% | 35%
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% | 23% | 41% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source0% | 0% | 23% | 41% | 35%
Most Complex Units
Top 17 most complex units
Unit# linesMcCabe index# params
45 13 7
43 11 5
30 10 2
static bool_ isValidID()
in source/jobs.c
21 7 4
32 7 6
25 7 5
18 6 5
30 6 7
15 5 3
29 5 7
22 4 5
22 4 5
11 3 2
12 2 4
6 1 2
6 1 2
13 1 5