microsoft / BotBuilder-Location
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 237 units with 2,953 lines of code in units (53.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (58 lines of code)
    • 20 simple units (593 lines of code)
    • 216 very simple units (2,302 lines of code)
0% | 0% | 1% | 20% | 77%
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
ts0% | 0% | 7% | 22% | 70%
cs0% | 0% | 0% | 17% | 82%
js0% | 0% | 0% | 21% | 78%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Node/core/src0% | 0% | 7% | 22% | 70%
Node/core/lib0% | 0% | 0% | 22% | 77%
CSharp/BotBuilderLocation/Dialogs0% | 0% | 0% | 25% | 74%
CSharp/BotBuilderLocation0% | 0% | 0% | 9% | 90%
CSharp/BotBuilderLocation/Azure0% | 0% | 0% | 18% | 81%
CSharp/BotBuilderLocation/Bing0% | 0% | 0% | 0% | 100%
CSharp/BotBuilderLocation.Sample/Controllers0% | 0% | 0% | 0% | 100%
Node/sample0% | 0% | 0% | 0% | 100%
CSharp/BotBuilderLocation.Sample/App_Start0% | 0% | 0% | 0% | 100%
CSharp/BotBuilderLocation.Sample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function getLocationPickerPrompt()
in Node/core/src/botbuilder-location.ts
58 17 0
public IDialog CreateDialog()
in CSharp/BotBuilderLocation/Dialogs/LocationDialogFactory.cs
65 9 4
function createDialog()
in Node/core/lib/dialogs/require-fields-dialog.js
42 8 0
function GetLocationMapImageUrl()
in Node/core/lib/services/bing-geospatial-service.js
16 8 3
function createDialog()
in Node/core/src/dialogs/require-fields-dialog.ts
40 8 0
export function GetLocationMapImageUrl()
in Node/core/src/services/bing-geospatial-service.ts
16 8 3
protected override async Task MessageReceivedInternalAsync()
in CSharp/BotBuilderLocation/Dialogs/FavoriteLocationRetrieverDialog.cs
33 7 2
public IEnumerable CreateHeroCards()
in CSharp/BotBuilderLocation/LocationCardBuilder.cs
34 7 3
function createDialog()
in Node/core/lib/dialogs/retrieve-favorite-location-dialog.js
47 7 1
MapCard.prototype.location = function()
in Node/core/lib/map-card.js
26 7 3
function createDialog()
in Node/core/src/dialogs/retrieve-favorite-location-dialog.ts
47 7 1
public location()
in Node/core/src/map-card.ts
25 7 3
private void CalculateMapView()
in CSharp/BotBuilderLocation/Azure/AzureMapsSpatialService.cs
23 6 6
private async Task TryHandleSpecialCommandResponse()
in CSharp/BotBuilderLocation/Dialogs/LocationDialogBase.cs
34 6 2
private async Task CompleteMissingFields()
in CSharp/BotBuilderLocation/Dialogs/LocationRequiredFieldsDialog.cs
14 6 1
private async Task TryReverseGeocodeAddress()
in CSharp/BotBuilderLocation/Dialogs/LocationRetrieverDialogBase.cs
19 6 1
function()
in Node/core/lib/botbuilder-location.js
12 6 3
function()
in Node/core/lib/dialogs/retrieve-facebook-location-dialog.js
29 6 3
function createLocationResolveDialog()
in Node/core/lib/dialogs/retrieve-facebook-location-dialog.js
18 6 0
function createDialog()
in Node/core/src/dialogs/retrieve-facebook-location-dialog.ts
35 6 1