microsoft / vs-streamjsonrpc
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 577 units with 7,539 lines of code in units (59.1% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (523 lines of code)
    • 13 medium complex units (822 lines of code)
    • 33 simple units (1,172 lines of code)
    • 528 very simple units (5,022 lines of code)
0% | 6% | 10% | 15% | 66%
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
cs0% | 6% | 10% | 15% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/StreamJsonRpc0% | 9% | 12% | 14% | 63%
src/StreamJsonRpc/Reflection0% | 0% | 9% | 19% | 70%
src/StreamJsonRpc/Protocol0% | 0% | 0% | 22% | 77%
src/StreamJsonRpc/Exceptions0% | 0% | 0% | 0% | 100%
src/StreamJsonRpc/EventArgs0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal static TypeInfo Get()
in src/StreamJsonRpc/ProxyGeneration.cs
247 37 1
136 29 1
private async Task HandleRpcAsync()
in src/StreamJsonRpc/JsonRpc.cs
140 26 1
internal IDisposable? AddLocalRpcTarget()
in src/StreamJsonRpc/Reflection/RpcTargetInfo.cs
78 23 4
private async Task InvokeCoreAsync()
in src/StreamJsonRpc/JsonRpc.cs
119 19 3
private async ValueTask ReadHeadersAsync()
in src/StreamJsonRpc/HeaderDelimitedMessageHandler.cs
71 16 1
private static()
in src/StreamJsonRpc/MessagePackFormatter.cs
84 16 2
public void Serialize()
in src/StreamJsonRpc/MessagePackFormatter.cs
71 13 3
internal static T Deserialize()
in src/StreamJsonRpc/Reflection/ExceptionSerializationHelpers.cs
47 13 3
private JsonRpcRequest ReadRequest()
in src/StreamJsonRpc/JsonMessageFormatter.cs
46 12 1
public JsonRpcMessage Deserialize()
in src/StreamJsonRpc/JsonMessageFormatter.cs
36 11 1
private void TokenizeUserData()
in src/StreamJsonRpc/JsonMessageFormatter.cs
46 11 1
protected async Task InvokeCoreAsync()
in src/StreamJsonRpc/JsonRpc.cs
59 11 7
internal static string GetArgumentsString()
in src/StreamJsonRpc/JsonRpcEventSource.cs
75 11 1
private protected async ValueTask DeserializeMessageAsync()
in src/StreamJsonRpc/PipeMessageHandler.cs
56 11 4
internal static string? ToCamelCase()
in src/StreamJsonRpc/Utilities.cs
34 11 1
public JToken Serialize()
in src/StreamJsonRpc/JsonMessageFormatter.cs
32 10 1
public IMessagePackFormatter? GetFormatter()
in src/StreamJsonRpc/MessagePackFormatter.cs
41 10 0
public virtual ArgumentMatchResult TryGetTypedArguments()
in src/StreamJsonRpc/Protocol/JsonRpcRequest.cs
40 10 2
public async ValueTask GetNextValuesAsync()
in src/StreamJsonRpc/Reflection/MessageFormatterEnumerableTracker.cs
60 10 1