microsoft / PowerBI-CSharp
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 172 units with 1,066 lines of code in units (53.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (26 lines of code)
    • 171 very simple units (1,040 lines of code)
0% | 0% | 0% | 2% | 97%
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% | 0% | 2% | 97%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sdk/PowerBI.Api/Extensions0% | 0% | 0% | 3% | 96%
sdk/PowerBI.Api/Imports0% | 0% | 0% | 0% | 100%
sdk/PowerBI.Api/Extensions/Models0% | 0% | 0% | 0% | 100%
sdk/PowerBI.Api/Extensions/Models/Credentials0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal static string Encrypt()
in sdk/PowerBI.Api/Extensions/Asymmetric1024KeyEncryptionHelper.cs
26 6 3
private async Task SendRequest()
in sdk/PowerBI.Api/Imports/ImportsOperations.cs
28 5 7
public AsymmetricKeyEncryptor()
in sdk/PowerBI.Api/Extensions/AsymmetricKeyEncryptor.cs
16 4 1
private static HMAC GetMac()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
20 4 2
private static bool CryptographicEquals()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
24 4 5
private async Task VerifyStatusCode()
in sdk/PowerBI.Api/Imports/ImportsOperations.cs
19 4 2
public string EncodeCredentials()
in sdk/PowerBI.Api/Extensions/AsymmetricKeyEncryptor.cs
13 3 1
public UsernamePasswordCredentials()
in sdk/PowerBI.Api/Extensions/Models/Credentials/UsernamePasswordCredentials.cs
13 3 2
private static SymmetricAlgorithm GetCipher()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
17 2 2
public CredentialDetails()
in sdk/PowerBI.Api/Extensions/Models/CredentialDetails.cs
15 2 5
protected CredentialDetails()
in sdk/PowerBI.Api/Extensions/Models/CredentialDetails.cs
9 2 4
public KeyCredentials()
in sdk/PowerBI.Api/Extensions/Models/Credentials/KeyCredentials.cs
8 2 1
public OAuth2Credentials()
in sdk/PowerBI.Api/Extensions/Models/Credentials/OAuth2Credentials.cs
8 2 1
private async Task UploadFileToBlob()
in sdk/PowerBI.Api/Imports/ImportsOperations.cs
37 2 3
internal static string Encrypt()
in sdk/PowerBI.Api/Extensions/AsymmetricHigherKeyEncryptionHelper.cs
21 1 3
public static void AppendData()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
4 1 2
public static void AppendData()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
8 1 4
private static void Append()
in sdk/PowerBI.Api/Extensions/AuthenticatedEncryption.cs
5 1 3
public static Dashboards GetDashboards()
in sdk/PowerBI.Api/Extensions/DashboardsOperationsExtensions.cs
4 1 2
public static async Task GetDashboardsAsync()
in sdk/PowerBI.Api/Extensions/DashboardsOperationsExtensions.cs
7 1 3