microsoft / appcenter-sdk-apple
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 393 units with 2,915 lines of code in units (6.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (347 lines of code)
    • 8 simple units (202 lines of code)
    • 381 very simple units (2,366 lines of code)
0% | 0% | 11% | 6% | 81%
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
swift0% | 0% | 11% | 7% | 80%
mm0% | 0% | 63% | 0% | 36%
m0% | 0% | 0% | 22% | 77%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
SasquatchMac0% | 0% | 25% | 8% | 66%
Sasquatch0% | 0% | 6% | 7% | 85%
AppCenterCrashes0% | 0% | 35% | 0% | 64%
AppCenterDistribute0% | 0% | 0% | 61% | 38%
SasquatchTV0% | 0% | 0% | 0% | 100%
AppCenter0% | 0% | 0% | 0% | 100%
AppCenterAnalytics0% | 0% | 0% | 0% | 100%
CrashLib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func tableView()
in SasquatchMac/SasquatchMac/ViewControllers/TransmissionViewController.swift
122 19 3
func applicationDidFinishLaunching()
in SasquatchMac/SasquatchMacSwift/AppDelegate.swift
76 14 1
func application()
in Sasquatch/SasquatchSwift/AppDelegate.swift
90 13 2
static void MSACCrashesUncaughtCXXTerminateHandler()
in AppCenterCrashes/AppCenterCrashes/Internals/MSACCrashesCXXExceptionHandler.mm
59 12 1
func eventProperties()
in Sasquatch/Sasquatch/ViewControllers/Sections/EventPropertiesTableSection.swift
28 9 0
func eventPropertiesSet()
in SasquatchMac/SasquatchMac/ViewControllers/AnalyticsViewController.swift
32 9 0
NSComparisonResult MSACCompareCurrentReleaseWithRelease()
in AppCenterDistribute/AppCenterDistribute/MSACDistributeUtil.m
26 8 1
func onChangeType()
in Sasquatch/Sasquatch/ViewControllers/Cells/MSCustomPropertyTableViewCell.swift
45 6 1
func setEventPropertyState()
in Sasquatch/Sasquatch/ViewControllers/Sections/TargetPropertiesTableSection.swift
14 6 2
func handle()
in Sasquatch/SasquatchWatchSwift Extension/ExtensionDelegate.swift
21 6 1
func propertyValueChanged()
in SasquatchMac/SasquatchMac/ViewControllers/TransmissionViewController.swift
21 6 1
func setEventPropertyState()
in SasquatchMac/SasquatchMac/ViewControllers/TransmissionViewController.swift
15 6 2
func authenticationProvider()
in Sasquatch/Sasquatch/MSAAnalyticsAuthenticationProvider.swift
43 5 2
func onChangeType()
in Sasquatch/Sasquatch/ViewControllers/MSAnalyticsTypedPropertyTableViewCell.swift
37 5 1
func signIn()
in Sasquatch/Sasquatch/ViewControllers/MSSignInViewController.swift
20 5 1
func signIn()
in SasquatchMac/SasquatchMac/ViewControllers/AuthenticationViewController.swift
19 5 1
func authenticationProvider()
in SasquatchMac/SasquatchMac/ViewControllers/AuthenticationViewController.swift
41 5 2
func getCellRow()
in SasquatchMac/SasquatchMac/ViewControllers/TransmissionViewController.swift
16 5 1
func handleSystemAlert()
in Sasquatch/SasquatchUITests/Helpers.swift
16 4 0
func tableView()
in SasquatchMac/SasquatchMac/ViewControllers/CrashesViewController.swift
24 4 3