anthropics / github-mcp-server
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 98 units with 4,299 lines of code in units (91.6% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (461 lines of code)
    • 22 medium complex units (1,889 lines of code)
    • 26 simple units (1,379 lines of code)
    • 47 very simple units (570 lines of code)
0% | 10% | 43% | 32% | 13%
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
go0% | 10% | 43% | 32% | 13%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pkg0% | 11% | 42% | 32% | 12%
cmd0% | 0% | 55% | 26% | 17%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
193 36 2
115 31 1
153 27 2
80 21 3
129 21 2
107 20 2
128 18 2
106 17 2
37 15 2
96 15 2
103 15 2
76 14 1
105 14 2
102 14 2
70 14 2
62 13 2
99 13 2
68 12 2
79 12 2
82 12 2
68 12 2
70 11 2
74 11 2
76 11 2
72 11 2
37 10 2
65 10 2
67 10 2
67 10 2
67 10 2
63 10 2
81 10 2
63 10 2
68 10 2
69 10 2
32 9 0
59 9 2
57 9 2
56 9 2
56 9 2
56 9 2
57 9 2
61 9 2
56 9 2
57 9 2
51 8 2
23 7 2
22 7 1
25 6 2
29 6 0