Linux / Drivers / Soundwire
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 278 units with 6,413 lines of code in units (77.0% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (264 lines of code)
    • 24 medium complex units (1,540 lines of code)
    • 38 simple units (1,505 lines of code)
    • 214 very simple units (3,104 lines of code)
0% | 4% | 24% | 23% | 48%
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% | 4% | 24% | 23% | 48%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 4% | 24% | 23% | 48%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
138 32 1
126 27 1
89 22 3
84 21 2
111 20 2
55 17 1
88 15 1
92 15 3
61 15 4
76 15 1
45 14 1
72 14 1
61 14 1
66 13 3
62 13 2
49 13 2
46 13 2
60 12 1
41 12 1
69 12 1
51 11 1
45 11 2
49 11 2
50 11 3
74 11 1
44 11 1
38 10 7
49 10 3
56 10 2
28 9 1
38 9 1
44 9 1
50 9 1
32 9 4
51 9 2
59 9 2
30 8 6
21 8 1
29 8 3
29 8 2
74 8 3
93 8 5
57 7 3
61 7 4
38 7 3
44 7 4
30 7 2
28 7 1
49 6 2
29 6 3