microsoft / appcenter-cli
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 719 units with 10,247 lines of code in units (72.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (211 lines of code)
    • 23 medium complex units (1,181 lines of code)
    • 73 simple units (2,073 lines of code)
    • 622 very simple units (6,782 lines of code)
0% | 2% | 11% | 20% | 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% | 2% | 12% | 20% | 65%
js0% | 0% | 0% | 11% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/commands/codepush0% | 11% | 26% | 15% | 46%
src/util/commandline0% | 0% | 21% | 22% | 56%
src/commands/orgs0% | 0% | 20% | 24% | 55%
src/commands/distribute0% | 0% | 6% | 33% | 60%
src/commands/build0% | 0% | 25% | 34% | 39%
appcenter-file-upload-client-node/src0% | 0% | 10% | 21% | 68%
src/commands/apps0% | 0% | 19% | 17% | 62%
src/commands/analytics0% | 0% | 3% | 5% | 91%
src/commands/crashes0% | 0% | 0% | 25% | 74%
src/commands/tokens0% | 0% | 0% | 77% | 22%
src/util/interaction0% | 0% | 0% | 11% | 88%
scripts0% | 0% | 0% | 11% | 88%
src/commands0% | 0% | 0% | 31% | 68%
src/commands/lib0% | 0% | 0% | 92% | 7%
src/util/apis0% | 0% | 0% | 25% | 74%
src/util/token-store0% | 0% | 0% | 13% | 86%
src/util/misc0% | 0% | 0% | 3% | 96%
src/util/profile0% | 0% | 0% | 0% | 100%
src/commands/profile0% | 0% | 0% | 0% | 100%
src/util/continuous-polling0% | 0% | 0% | 0% | 100%
src/util/portal0% | 0% | 0% | 0% | 100%
src/commands/telemetry0% | 0% | 0% | 0% | 100%
appcenter-file-upload-client-node/src/model0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export async function getReactNativeProjectAppVersion()
in src/commands/codepush/lib/react-native-utils.ts
211 44 2
public async run()
in src/commands/codepush/release-electron.ts
74 25 1
public async run()
in src/commands/codepush/release-react.ts
83 25 1
export function parseOptions()
in src/util/commandline/option-parser.ts
67 18 4
export function parseOptions()
in src/util/commandline/option-parser.ts
60 18 1
async run()
in src/commands/codepush/patch.ts
56 17 1
protected runNoClient()
in src/util/commandline/command.ts
35 16 0
async run()
in src/commands/build/logs.ts
60 15 1
private validateParameters()
in src/commands/distribute/release.ts
30 15 0
private sendRequest()
in appcenter-file-upload-client-node/src/ac-fus-uploader.ts
59 14 1
private validateParameters()
in src/commands/distribute/groups/update.ts
22 14 0
public async run()
in src/commands/distribute/releases/edit.ts
50 13 1
private validateParameters()
in src/commands/orgs/collaborators/update.ts
25 13 0
export function setupAutoCompleteForShell()
in src/util/commandline/autocomplete.ts
36 13 2
protected async release()
in src/commands/codepush/lib/codepush-release-command-base.ts
57 12 1
export function runHermesEmitBinaryCommand()
in src/commands/codepush/lib/react-native-utils.ts
92 12 4
public async run()
in src/commands/orgs/collaborators/update.ts
90 12 1
public async run()
in src/commands/analytics/audience.ts
33 11 1
async run()
in src/commands/apps/update.ts
39 11 1
async run()
in src/commands/build/branches/show.ts
40 11 2