microsoft / vscode-service-fabric-reliable-services
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 75 units with 950 lines of code in units (82.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (45 lines of code)
    • 9 simple units (225 lines of code)
    • 65 very simple units (680 lines of code)
0% | 0% | 4% | 23% | 71%
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% | 4% | 23% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/yo0% | 0% | 40% | 28% | 31%
src/yo/yo0% | 0% | 0% | 44% | 55%
src/commands0% | 0% | 0% | 14% | 85%
src/yo/prompts0% | 0% | 0% | 27% | 72%
src/yo/utils0% | 0% | 0% | 0% | 100%
src/configureWorkspace0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
45 11 1
public static createPrompt()
in src/yo/prompts/factory.ts
19 10 2
async function deployToUnsecureCluster()
in src/commands/publish-application.ts
20 8 1
async function connectToUnsecureCluster()
in src/commands/remove-application.ts
20 8 1
async function deployToUnsecureCluster()
in src/commands/upgrade-application.ts
20 8 2
public render()
in src/yo/prompts/input.ts
27 8 0
function list()
in src/yo/index.ts
32 6 1
public prompt()
in src/yo/yo/adapter.ts
28 6 2
const getNpmPaths = function()
in src/yo/yo/environment.ts
27 6 0
public getGenerators()
in src/yo/yo/yo.ts
32 6 0
export async function buildApplication()
in src/commands/build-application.ts
17 5 0
export async function deployApplication()
in src/commands/deploy-application.ts
15 5 0
async function readCloudProfile()
in src/commands/publish-application.ts
21 5 0
10 5 0
public render()
in src/yo/prompts/checkbox.ts
27 5 0
public run()
in src/yo/yo/yo.ts
40 5 2
async function deployToSecureClusterCert()
in src/commands/publish-application.ts
10 4 1
function connectToSecureCluster()
in src/commands/remove-application.ts
10 4 1
async function deployToSecureClusterCert()
in src/commands/upgrade-application.ts
10 4 2
public diff()
in src/yo/yo/adapter.ts
19 4 2