anthropics / claude-code-action
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 160 units with 4,474 lines of code in units (57.1% of code).
    • 1 very complex units (210 lines of code)
    • 5 complex units (510 lines of code)
    • 17 medium complex units (1,363 lines of code)
    • 28 simple units (1,091 lines of code)
    • 109 very simple units (1,300 lines of code)
4% | 11% | 30% | 24% | 29%
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
ts4% | 11% | 30% | 24% | 29%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src5% | 13% | 30% | 23% | 27%
base-action0% | 0% | 32% | 29% | 38%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
210 51 4
114 42 1
92 33 1
58 31 1
92 29 1
154 27 1
192 25 11
73 25 1
130 24 4
42 24 1
52 24 1
72 23 0
69 21 3
70 17 1
68 16 0
74 16 4
46 15 1
100 15 1
101 14 6
44 14 1
68 13 4
111 11 0
51 11 1
131 10 3
23 10 1
37 10 1
24 9 0
35 9 1
47 9 3
60 9 0
26 9 1
76 9 4
42 8 1
38 8 3
27 8 4
25 8 2
61 8 1
23 8 2
41 8 2
24 8 1
22 7 3
12 7 1
22 7 2
94 7 4
51 7 2
16 6 1
16 6 1
34 6 6
20 6 1
27 6 3