microsoft / vsts-team-calendar
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 195 units with 3,490 lines of code in units (62.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (599 lines of code)
    • 14 simple units (604 lines of code)
    • 173 very simple units (2,287 lines of code)
0% | 0% | 17% | 17% | 65%
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% | 23% | 13% | 63%
tsx0% | 0% | 7% | 23% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
legacy/src/Calendar0% | 0% | 16% | 18% | 64%
legacy/src/Calendar/EventSources0% | 0% | 25% | 10% | 64%
src0% | 0% | 8% | 25% | 66%
legacy/src/Calendar/Utils0% | 0% | 0% | 13% | 86%
legacy/src/Calendar/Enhancers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private _renderContent()
in legacy/src/Calendar/Dialogs.ts
115 21 0
private _createEventSource()
in legacy/src/Calendar/Calendar.ts
76 17 2
public getEvents()
in legacy/src/Calendar/EventSources/VSOCapacityEventSource.ts
146 16 1
private _validate()
in legacy/src/Calendar/Dialogs.ts
59 14 1
private _updateCategoryForEvents()
in legacy/src/Calendar/EventSources/FreeFormEventsSource.ts
46 11 1
public static parseUniquefiedIdentityName()
in legacy/src/Calendar/EventSources/VSOCapacityEventSource.ts
51 11 1
private _eventRender()
in legacy/src/Calendar/Views.tsx
55 11 4
private async initialize()
in src/Calendar.tsx
51 11 0
private _buildCalendarEventFromFields()
in legacy/src/Calendar/Dialogs.ts
35 10 0
public load()
in legacy/src/Calendar/EventSources/FreeFormEventsSource.ts
31 9 0
private _getComposedCallback()
in legacy/src/Calendar/Calendar.ts
26 8 1
public isValid()
in legacy/src/Calendar/Dialogs.ts
28 8 0
15 8 2
public addEventSources()
in legacy/src/Calendar/Calendar.ts
28 7 1
private _setupValidators()
in legacy/src/Calendar/Dialogs.ts
23 7 0
public getEvents()
in legacy/src/Calendar/EventSources/VSOIterationEventSource.ts
64 7 1
private async initialize()
in legacy/src/Calendar/Views.tsx
23 7 0
export function eventIn()
in legacy/src/Calendar/Utils/Date.ts
12 6 2
public render()
in legacy/src/Calendar/Views.tsx
133 6 0
private _getAddCommands()
in legacy/src/Calendar/Views.tsx
40 6 4