microsoft / vscode-azureeventgrid
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 66 units with 757 lines of code in units (70.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)
    • 5 simple units (254 lines of code)
    • 61 very simple units (503 lines of code)
0% | 0% | 0% | 33% | 66%
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% | 0% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/eventSubscription/createWizard0% | 0% | 0% | 47% | 52%
src/eventSubscription/commands0% | 0% | 0% | 60% | 39%
src/eventSubscription/tree0% | 0% | 0% | 0% | 100%
src/topic/tree0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
src/topic/createWizard0% | 0% | 0% | 0% | 100%
src/commands0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/eventSubscription0% | 0% | 0% | 0% | 100%
src/topic0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export async function createMockEventGenerator()
in src/eventSubscription/commands/mock/createMockEventGenerator.ts
83 10 2
export function getEventTypeFromTopic()
in src/eventSubscription/commands/mock/createMockEventGenerator.ts
23 9 1
public async execute()
in src/eventSubscription/createWizard/EventSubscriptionCreateStep.ts
42 9 1
public async prompt()
in src/eventSubscription/createWizard/TopicTypeStep.ts
85 9 1
async function getEndpointUrl()
in src/eventSubscription/commands/mock/sendEvents.ts
21 6 1
15 5 3
export async function generateEvents()
in src/eventSubscription/commands/mock/generateEvents.ts
15 4 1
private async validateName()
in src/eventSubscription/createWizard/EventSubscriptionNameStep.ts
12 4 1
public constructor()
in src/eventSubscription/tree/EventSubscriptionTreeItem.ts
9 4 2
private async validateName()
in src/topic/createWizard/TopicNameStep.ts
12 4 1
10 4 4
export async function previewEvents()
in src/eventSubscription/commands/mock/previewEvents.ts
5 3 1
public async prompt()
in src/eventSubscription/createWizard/TopicListStep.ts
21 3 1
public async loadMoreChildrenImpl()
in src/eventSubscription/tree/EventSubscriptionProvider.ts
16 3 1
public constructor()
in src/topic/tree/TopicTreeItem.ts
9 3 2
function parseResourceId()
in src/utils/azureUtils.ts
7 3 1
export async function createChildNode()
in src/commands/createChildNode.ts
6 2 4
export async function deleteNode()
in src/commands/deleteNode.ts
6 2 3
export async function openInPortal()
in src/commands/openInPortal.ts
6 2 3
public async prompt()
in src/eventSubscription/createWizard/ContainerRegistryListStep.ts
7 2 1