microsoft / vscode-azurelogicapps
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 415 units with 4,294 lines of code in units (77.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (304 lines of code)
    • 17 simple units (739 lines of code)
    • 397 very simple units (3,251 lines of code)
0% | 0% | 7% | 17% | 75%
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% | 17% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/utils/logic-app0% | 0% | 19% | 33% | 46%
src/wizard/integration-account0% | 0% | 0% | 23% | 76%
src/wizard/logic-app0% | 0% | 0% | 8% | 91%
src/tree/logic-app0% | 0% | 0% | 6% | 93%
src/commands/logic-app0% | 0% | 0% | 6% | 93%
src/tree/integration-account0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
src/utils/integration-account0% | 0% | 0% | 0% | 100%
src/commands/integration-account0% | 0% | 0% | 0% | 100%
src/editors/integration-account0% | 0% | 0% | 0% | 100%
src/editors/logic-app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function initialize()
in src/utils/logic-app/designerUtils.ts
304 16 2
export function getWebviewContentForDesigner()
in src/utils/logic-app/designerUtils.ts
354 10 16
function initialize()
in src/utils/logic-app/monitoringViewUtils.ts
162 9 2
public get iconPath()
in src/tree/logic-app/LogicAppRunActionTreeItem.ts
14 7 0
public get iconPath()
in src/tree/logic-app/LogicAppRunTreeItem.ts
14 7 0
export async function addLogicAppToProject()
in src/commands/logic-app/addLogicAppToProject.ts
21 6 2
prompt: localize()
in src/wizard/integration-account/agreements/agreementNameStep.ts
15 6 2
validateInput: async()
in src/wizard/integration-account/agreements/agreementNameStep.ts
14 6 1
prompt: localize()
in src/wizard/integration-account/integrationAccountNameStep.ts
15 6 2
validateInput: async()
in src/wizard/integration-account/integrationAccountNameStep.ts
14 6 1
prompt: localize()
in src/wizard/integration-account/maps/mapNameStep.ts
15 6 2
validateInput: async()
in src/wizard/integration-account/maps/mapNameStep.ts
14 6 1
prompt: localize()
in src/wizard/integration-account/partners/partnerNameStep.ts
15 6 2
validateInput: async()
in src/wizard/integration-account/partners/partnerNameStep.ts
14 6 1
prompt: localize()
in src/wizard/integration-account/schemas/schemaNameStep.ts
15 6 2
validateInput: async()
in src/wizard/integration-account/schemas/schemaNameStep.ts
14 6 1
prompt: localize()
in src/wizard/logic-app/LogicAppNameStep.ts
15 6 2
validateInput: async()
in src/wizard/logic-app/LogicAppNameStep.ts
14 6 1
export async function openInDesigner()
in src/commands/logic-app/openInDesigner.ts
57 5 2
public pickTreeItem()
in src/tree/integration-account/IntegrationAccountTreeItem.ts
14 5 1