microsoft / app-store-vsts-extension
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 68 units with 1,814 lines of code in units (86.2% of code).
    • 1 very complex units (273 lines of code)
    • 2 complex units (319 lines of code)
    • 4 medium complex units (239 lines of code)
    • 14 simple units (487 lines of code)
    • 47 very simple units (496 lines of code)
15% | 17% | 13% | 26% | 27%
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
ts32% | 37% | 0% | 17% | 13%
js0% | 0% | 24% | 35% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tasks/AppStoreRelease92% | 0% | 0% | 0% | 7%
Tasks/AppStorePromote0% | 99% | 0% | 0% | <1%
Tasks/IpaResign0% | 40% | 0% | 37% | 22%
ROOT0% | 0% | 24% | 35% | 40%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async function run()
in Tasks/AppStoreRelease/app-store-release.ts
273 57 0
async function run()
in Tasks/IpaResign/ipa-resign.ts
158 32 0
async function run()
in Tasks/AppStorePromote/app-store-promote.ts
161 29 0
91 19 0
52 15 1
56 14 2
40 12 2
export async function installCertInTemporaryKeychain()
in Tasks/IpaResign/ios-signing-common.ts
56 10 4
export async function getProvisioningProfileType()
in Tasks/IpaResign/ios-signing-common.ts
49 10 1
33 9 2
33 9 4
32 8 3
31 8 1
14 8 1
var run = function()
in make-util.js
21 7 3
29 7 3
47 7 0
21 7 2
export async function getProvisioningProfileUUID()
in Tasks/IpaResign/ios-signing-common.ts
45 6 1
49 6 1