microsoft / service-fabric-explorer
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 2,608 units with 20,642 lines of code in units (39.0% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (123 lines of code)
    • 19 medium complex units (1,223 lines of code)
    • 79 simple units (2,027 lines of code)
    • 2,508 very simple units (17,269 lines of code)
0% | <1% | 5% | 9% | 83%
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% | <1% | 5% | 9% | 83%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
SfxWeb/src/app0% | <1% | 4% | 10% | 84%
Sfx/App/Scripts0% | <1% | 5% | 7% | 86%
Sfx-Standalone/modules/main-window0% | 0% | 21% | 20% | 58%
Sfx-Standalone/modules/http0% | 0% | 15% | 26% | 57%
Sfx-Standalone/modules/prompt.select-certificate0% | 0% | 100% | 0% | 0%
Sfx-Standalone/modules/update0% | 0% | 0% | 43% | 56%
Sfx-Standalone/modules/browser-window0% | 0% | 0% | 29% | 70%
Sfx-Standalone0% | 0% | 0% | 29% | 70%
Sfx-Standalone/modules0% | 0% | 0% | 23% | 76%
Sfx-Standalone/modules/prompt0% | 0% | 0% | 0% | 100%
Sfx-Standalone/modules/cert0% | 0% | 0% | 0% | 100%
Sfx-Standalone/utilities0% | 0% | 0% | 0% | 100%
Sfx0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private getResolvedDataObjectInternal()
in src/Sfx/App/Scripts/Directives/DetailViewPartDirective.ts
61 30 3
private getResolvedDataObjectInternal()
in src/SfxWeb/src/app/shared/component/detail-view-part/detail-view-part.component.ts
62 30 3
private async setupClusterListItemHandler()
in src/Sfx-Standalone/modules/main-window/cluster-list/cluster-list.script.ts
103 18 3
constructor()
in src/Sfx-Standalone/modules/prompt.select-certificate/select-certificate.ts
83 16 1
private setAdvancedActions()
in src/Sfx/App/Scripts/Models/DataModels/Service.ts
69 16 0
public static getViewPathUrl()
in src/Sfx/App/Scripts/Utils/Utils.ts
86 16 3
private setAdvancedActions()
in src/Sfx/App/Scripts/Models/DataModels/Application.ts
69 15 0
public refreshExpandedChildrenRecursively()
in src/Sfx/App/Scripts/ViewModels/TreeNodeGroupViewModel.ts
45 15 0
public static getViewPathUrl()
in src/SfxWeb/src/app/Utils/healthUtils.ts
88 15 3
setUpActions()
in src/SfxWeb/src/app/views/application/backup/backup.component.ts
65 15 0
setupActions()
in src/SfxWeb/src/app/views/service/backup/backup.component.ts
65 15 0
public get isVisibleByBadge()
in src/Sfx/App/Scripts/ViewModels/TreeNodeViewModel.ts
14 14 0
protected updateInternal()
in src/SfxWeb/src/app/Models/DataModels/collections/RepairTaskCollection.ts
39 14 0
public setAdvancedActions()
in src/Sfx/App/Scripts/Models/DataModels/Partition.ts
103 13 0
function handleRequestAsync()
in src/Sfx-Standalone/modules/http/request-handlers/electron.ts
78 12 3
function getEncoding()
in src/Sfx-Standalone/modules/http/response-handlers/json.ts
24 12 1
public constructor()
in src/Sfx/App/Scripts/Controllers/ImageStoreViewController.ts
65 12 3
export function parseEventsGenerically()
in src/Sfx/App/Scripts/Models/eventstore/timelineGenerators.ts
70 11 2
export function parseEventsGenerically()
in src/SfxWeb/src/app/Models/eventstore/timelineGenerators.ts
70 11 2
public get isVisibleByBadge()
in src/SfxWeb/src/app/ViewModels/TreeNodeGroupViewModel.ts
26 11 0