Linux / Drivers / Watchdog
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 1,883 units with 27,252 lines of code in units (69.4% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (263 lines of code)
    • 83 medium complex units (5,139 lines of code)
    • 181 simple units (6,017 lines of code)
    • 1,616 very simple units (15,833 lines of code)
0% | <1% | 18% | 22% | 58%
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% | <1% | 18% | 22% | 58%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | <1% | 18% | 22% | 58%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
77 29 1
83 28 2
103 26 1
71 25 1
93 25 3
121 25 1
102 24 1
91 23 1
114 21 1
119 21 2
79 21 3
65 20 3
113 19 2
81 19 1
79 18 1
66 18 3
56 17 3
76 17 4
56 17 3
95 17 1
62 17 1
62 16 1
85 16 1
53 16 3
85 16 2
61 16 3
68 16 2
81 16 2
49 15 3
72 15 2
49 15 3
77 15 1
55 14 3
71 14 1
52 14 3
61 14 3
68 14 1
51 14 3
37 14 3
51 14 3
73 14 1
54 14 3
48 14 3
55 14 3
50 14 3
49 14 3
51 14 3
47 14 3
51 14 3
54 14 3