Linux / Drivers / I3c
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 321 units with 6,587 lines of code in units (75.6% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (195 lines of code)
    • 32 medium complex units (1,828 lines of code)
    • 43 simple units (1,542 lines of code)
    • 243 very simple units (3,022 lines of code)
0% | 2% | 27% | 23% | 45%
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% | 2% | 27% | 23% | 45%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
master0% | 3% | 29% | 24% | 42%
ROOT0% | 0% | 22% | 19% | 57%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
38 28 2
122 26 1
35 26 2
90 22 2
60 21 2
83 17 4
59 17 3
53 17 2
56 17 2
65 16 3
41 16 4
73 15 1
56 14 1
62 14 2
106 14 2
34 13 3
24 13 2
75 13 1
60 13 5
110 13 1
42 13 2
37 12 1
11 12 1
66 12 1
38 12 1
47 12 3
61 12 1
49 12 1
48 12 3
54 12 3
51 12 3
68 11 1
61 11 1
52 11 3
36 11 2
33 10 1
55 10 5
25 9 3
70 9 1
62 9 1
62 9 3
60 9 3
51 9 1
40 8 3
48 8 1
50 8 1
56 7 1
19 7 2
26 7 2
25 7 2