Linux / Drivers / Parport
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 313 units with 6,104 lines of code in units (68.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (107 lines of code)
    • 30 medium complex units (2,068 lines of code)
    • 44 simple units (1,475 lines of code)
    • 238 very simple units (2,454 lines of code)
0% | 1% | 33% | 24% | 40%
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% | 34% | 24% | 39%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 1% | 33% | 24% | 40%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
107 32 3
148 24 2
126 23 4
65 23 3
108 22 1
94 21 1
94 19 4
84 19 3
71 17 1
69 16 3
61 15 1
47 15 2
53 15 4
67 15 2
41 15 5
38 15 1
63 14 3
70 14 4
57 14 2
62 13 3
53 13 2
44 13 1
87 13 3
78 13 4
84 13 4
47 12 1
41 12 1
58 11 1
67 11 4
68 11 4
23 11 3
47 10 1
47 10 2
63 10 4
21 10 1
33 10 2
31 9 3
43 9 3
31 9 5
41 9 1
27 9 2
45 9 4
33 9 1
72 9 1
62 8 1
24 8 4
38 8 1
29 8 1
36 7 1
32 7 1