microsoft / azure-analysis-services-http-sample
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 40 units with 845 lines of code in units (76.7% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (249 lines of code)
    • 8 medium size units (328 lines of code)
    • 10 small units (145 lines of code)
    • 19 very small units (123 lines of code)
0% | 29% | 38% | 17% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 29% | 38% | 17% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Tester0% | 41% | 28% | 19% | 10%
Microsoft.Samples.XMLA.HTTP.Proxy/Controllers0% | 50% | 0% | 41% | 7%
Microsoft.Samples.XMLA.HTTP.Proxy0% | 14% | 59% | 6% | 19%
Alternative Visuals
Longest Units
Top 20 longest 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 void ConfigureServices()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Startup.cs
64 1 1
public async Task GetConnectionString()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/TokenHelper.cs
50 10 4
public override async Task ExecuteResultAsync()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/QueryResult.cs
46 5 1
static async Task WriteResultsToStream()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/QueryResult.cs
46 7 4
static void Main()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Program.cs
43 3 1
public AuthData()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/AuthData.cs
42 6 1
public Config()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Config.cs
38 7 2
public ConnectionPoolEntry GetConnection()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/ConnectionPool.cs
37 6 2
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
static string QuoteName()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
18 3 1
public Test Clone()
in aspnet/Microsoft.Samples.XMLA.HTTP/Tester/Test.cs
16 1 0
public async Task Get()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
14 1 3
public async Task Post()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
14 1 2
public void Configure()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Startup.cs
14 2 2
public async Task GetTables()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
13 1 1
public async Task GetTable()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs
13 1 2
public override async Task ExecuteResultAsync()
in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/UnauthorizedResultWithAuthenticationheader.cs
13 2 1