microsoft / generator-azuresfcsharp
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 70 units with 1,902 lines of code in units (82.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (1,165 lines of code)
    • 0 simple units (0 lines of code)
    • 67 very simple units (737 lines of code)
0% | 0% | 61% | 0% | 38%
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
js0% | 0% | 73% | 0% | 26%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
generators/CoreCLRStatefulActor0% | 0% | 83% | 0% | 16%
generators/CoreCLRStatelessService0% | 0% | 78% | 0% | 21%
generators/CoreCLRStatefulService0% | 0% | 78% | 0% | 21%
generators/CoreCLRStatefulService/templates/service0% | 0% | 0% | 0% | 100%
generators/CoreCLRStatelessService/templates/service0% | 0% | 0% | 0% | 100%
generators/CoreCLRStatefulActor/templates/service0% | 0% | 0% | 0% | 100%
generators/app0% | 0% | 0% | 0% | 100%
generators/AddService0% | 0% | 0% | 0% | 100%
generators0% | 0% | 0% | 0% | 100%
generators/CoreCLRStatefulActor/templates/testclient0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
writing()
in generators/CoreCLRStatefulActor/index.js
511 18 0
writing()
in generators/CoreCLRStatefulService/index.js
322 16 0
writing()
in generators/CoreCLRStatelessService/index.js
332 15 0
writing: function()
in generators/AddService/index.js
17 4 0
private static string Write()
in generators/CoreCLRStatefulActor/templates/service/class/ActorEventListener.cs
26 4 5
private static string Write()
in generators/CoreCLRStatelessService/templates/service/class/ServiceEventListener.cs
26 4 5
writing()
in generators/app/index.js
17 4 0
end()
in generators/app/index.js
23 3 0
constructor: function()
in generators/AddService/index.js
11 2 0
async prompting()
in generators/CoreCLRStatefulActor/index.js
23 2 0
validate: function()
in generators/CoreCLRStatefulActor/index.js
3 2 1
function()
in generators/CoreCLRStatefulActor/index.js
5 2 1
function()
in generators/CoreCLRStatefulActor/index.js
5 2 1
protected override void OnEventWritten()
in generators/CoreCLRStatefulActor/templates/service/class/ActorEventListener.cs
16 2 1
public void Message()
in generators/CoreCLRStatefulActor/templates/service/class/ActorEventSource.cs
8 2 2
public void Message()
in generators/CoreCLRStatefulActor/templates/service/class/ActorEventSource.cs
7 2 1
private static void Main()
in generators/CoreCLRStatefulActor/templates/service/class/Program.cs
18 2 0
async prompting()
in generators/CoreCLRStatefulService/index.js
23 2 0
validate: function()
in generators/CoreCLRStatefulService/index.js
3 2 1
function()
in generators/CoreCLRStatefulService/index.js
5 2 1