microsoft / azure-analysis-services-http-sample
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 40 units with 845 lines of code in units (76.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (185 lines of code)
    • 5 simple units (213 lines of code)
    • 33 very simple units (447 lines of code)
0% | 0% | 21% | 25% | 52%
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% | 21% | 25% | 52%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tester0% | 0% | 41% | 0% | 58%
Microsoft.Samples.XMLA.HTTP.Proxy/Controllers0% | 0% | 50% | 0% | 49%
Microsoft.Samples.XMLA.HTTP.Proxy0% | 0% | 0% | 49% | 50%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static void RunTests()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
98 14 4
private async Task GetQueryResult()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
87 13 4
public async Task GetConnectionString()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/TokenHelper.cs
50 10 4
public Config()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Config.cs
38 7 2
static async Task WriteResultsToStream()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/QueryResult.cs
46 7 4
public AuthData()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/AuthData.cs
42 6 1
public ConnectionPoolEntry GetConnection()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/ConnectionPool.cs
37 6 2
public override async Task ExecuteResultAsync()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/QueryResult.cs
46 5 1
static string QuoteName()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
18 3 1
static void Main()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
43 3 1
private static void DumpTables()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
26 3 2
private static void WaitForStartup()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
19 3 1
public void Configure()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Startup.cs
14 2 2
public override async Task ExecuteResultAsync()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/UnauthorizedResultWithAuthenticationheader.cs
13 2 1
static async Task RunQueryJArray()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
9 2 1
static async Task RunQuery()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
11 2 1
static async Task GetBearerTokenAsync()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
10 2 3
public ConnectionPoolEntry()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/ConnectionPool.cs
10 1 2
public void RecordCheckIn()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/ConnectionPool.cs
6 1 0
public void RecordCheckOut()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/ConnectionPool.cs
6 1 0