Linux / Arch / Csky
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 442 units with 4,871 lines of code in units (46.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (196 lines of code)
    • 20 simple units (602 lines of code)
    • 419 very simple units (4,073 lines of code)
0% | 0% | 4% | 12% | 83%
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% | 4% | 14% | 80%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
abiv10% | 0% | 20% | 4% | 74%
mm0% | 0% | 8% | 12% | 79%
abiv20% | 0% | 14% | 7% | 77%
kernel0% | 0% | 0% | 16% | 83%
include0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
69 19 1
72 16 1
55 15 1
43 10 4
33 10 1
36 10 1
28 9 1
35 9 3
35 9 3
31 8 4
44 8 5
25 8 3
25 7 3
25 7 3
24 7 1
21 7 2
27 7 2
25 7 1
39 6 3
28 6 2
37 6 2
24 6 2
17 6 3
23 5 3
23 5 3
18 5 3
17 5 2
26 5 3
20 5 3
22 5 3
12 5 1
28 5 1
23 5 1
16 5 1
23 5 1
15 5 1
20 5 3
21 5 3
14 4 4
25 4 3
26 4 3
15 4 3
14 4 3
26 4 1
11 4 2
37 4 3
35 4 2
16 4 3
17 4 3
32 4 5