microsoft / service-fabric-services-and-actors-dotnet
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 2,061 units with 25,927 lines of code in units (65.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (847 lines of code)
    • 64 simple units (2,967 lines of code)
    • 1,986 very simple units (22,113 lines of code)
0% | 0% | 3% | 11% | 85%
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% | 0% | 3% | 11% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/FabActUtil0% | 0% | 20% | 11% | 68%
src/Microsoft.ServiceFabric.Services0% | 0% | 5% | 21% | 72%
src/Microsoft.ServiceFabric.Actors0% | 0% | 1% | 8% | 89%
src/Microsoft.ServiceFabric.Services.Remoting0% | 0% | 0% | 11% | 88%
src/Microsoft.ServiceFabric.Services.Wcf0% | 0% | 0% | 7% | 92%
src/Microsoft.ServiceFabric.Actors.Wcf0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal async Task ExecuteWithRetriesAsync()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorStateProviderHelper.cs
100 19 3
private bool LexFileArguments()
in src/FabActUtil/CommandLineParser/CommandLineArgumentParser.cs
104 18 2
private async Task ResolveHelperAsync()
in src/Microsoft.ServiceFabric.Services/Client/ServicePartitionResolver.cs
92 17 10
private bool ParseValue()
in src/FabActUtil/CommandLineParser/CommandLineArgumentParser.cs
64 16 3
private static string InsertXmlComments()
in src/FabActUtil/Generator/XmlSerializationUtility.cs
67 15 2
protected abstract void AbortClient()
in src/Microsoft.ServiceFabric.Services/Communication/Client/CommunicationClientFactoryBase.cs
123 14 1
public CommandLineArgumentParser()
in src/FabActUtil/CommandLineParser/CommandLineArgumentParser.cs
46 13 2
private bool ParseArgumentList()
in src/FabActUtil/CommandLineParser/CommandLineArgumentParser.cs
75 13 2
public void LoadExistingGeneratedNames()
in src/FabActUtil/Generator/ManifestGenerator.cs
49 12 0
public static ActorTypeInformation Get()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorTypeInformation.cs
75 12 1
public void LoadExistingContents()
in src/FabActUtil/Generator/ManifestGenerator.cs
52 11 0
public async Task Acquire()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorConcurrencyLock.cs
79 10 4
public async Task CommitUpdateAsync()
in src/Microsoft.ServiceFabric.Actors/Runtime/VolatileActorStateTable.cs
48 10 2
public override int Read()
in src/Microsoft.ServiceFabric.Services.Remoting/V2/Messaging/SegmentedReadMemoryStream.cs
46 10 3
public async Task InvokeWithRetryAsync()
in src/Microsoft.ServiceFabric.Services/Communication/Client/ServicePartitionClient.cs
89 10 3
public Argument()
in src/FabActUtil/CommandLineParser/CommandLineArgumentParser.cs
32 9 3
private IActorProxyFactory GetOrSetProxyFactory()
in src/Microsoft.ServiceFabric.Actors/Client/ActorProxyFactory.cs
45 9 1
public async Task FireReminderAsync()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorManager.cs
66 9 1
public async Task DeleteActorAsync()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorManager.cs
123 9 3
private async Task LoadRemindersAsync()
in src/Microsoft.ServiceFabric.Actors/Runtime/ActorManager.cs
46 9 1