microsoft / MCW-Serverless-architecture
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 22 units with 375 lines of code in units (57.6% 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)
    • 2 simple units (33 lines of code)
    • 20 very simple units (342 lines of code)
0% | 0% | 0% | 8% | 91%
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% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/TollBooth/TollBooth0% | 0% | 0% | 11% | 89%
src/TollBooth/UploadImages0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static string RemoveSpecialCharacters()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
15 8 1
private static string GetLicensePlateTextFromResult()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
18 7 1
private static void UploadImages()
in Hands-on lab/lab-files/src/TollBooth/UploadImages/Program.cs
45 5 1
public static async Task Run()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/ExportLicensePlates.cs
32 4 4
private async Task MakeOCRRequest()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
30 3 1
private AsyncPolicyWrap DefineAndRetrieveResiliencyStrategy()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
38 3 0
public static async Task Run()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/ProcessImage.cs
34 3 4
public async Task MarkLicensePlatesAsExported()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/DatabaseMethods.cs
14 2 1
public async Task GenerateAndSaveCsv()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FileMethods.cs
30 2 1
public async Task SendLicensePlateData()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/SendToEventGrid.cs
9 2 1
static int Main()
in Hands-on lab/lab-files/src/TollBooth/UploadImages/Program.cs
22 2 1
public DatabaseMethods()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/DatabaseMethods.cs
4 1 1
public List GetLicensePlatesToExport()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/DatabaseMethods.cs
14 1 0
public FileMethods()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FileMethods.cs
6 1 1
private static LicensePlateData ToLicensePlateData()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FileMethods.cs
9 1 1
public FindLicensePlateText()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
5 1 2
public async Task GetLicensePlate()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
4 1 1
private static ByteArrayContent GetImageHttpContent()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/FindLicensePlateText.cs
6 1 1
private static string GetBlobNameFromUrl()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/ProcessImage.cs
6 1 1
public SendToEventGrid()
in Hands-on lab/lab-files/src/TollBooth/TollBooth/SendToEventGrid.cs
5 1 2