awslabs / aws-data-api-ux
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 39 units with 420 lines of code in units (18.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (43 lines of code)
    • 38 very simple units (377 lines of code)
0% | 0% | 0% | 10% | 89%
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% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/app/stage0% | 0% | 0% | 14% | 85%
src/app/app-services0% | 0% | 0% | 0% | 100%
src/app/app-interceptors0% | 0% | 0% | 0% | 100%
src/app/security0% | 0% | 0% | 0% | 100%
src/app/app-validators0% | 0% | 0% | 0% | 100%
src/app/shared0% | 0% | 0% | 0% | 100%
src/app0% | 0% | 0% | 0% | 100%
src/app/app-guards0% | 0% | 0% | 0% | 100%
src/app/dashboard0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
searchEntities()
in angular/src/app/stage/item-list/item-list.component.ts
43 7 0
intercept()
in angular/src/app/app-interceptors/security.interceptor.ts
20 5 2
controlHasError()
in angular/src/app/app-services/form-helper.service.ts
3 4 2
export function MustMatchValidator()
in angular/src/app/app-validators/must-match.validator.ts
14 4 2
goPrev()
in angular/src/app/stage/item-list/item-list.component.ts
12 4 0
validateAllFormFields()
in angular/src/app/app-services/form-helper.service.ts
11 3 1
controlIsValid()
in angular/src/app/app-services/form-helper.service.ts
3 3 1
pullStatus()
in angular/src/app/stage/namespace-edit/namespace-edit.component.ts
27 3 0
formatBytes()
in angular/src/app/stage/namespace-details/namespace-details.component.ts
8 3 2
canActivate()
in angular/src/app/app-guards/security.guard.ts
7 3 0
constructor()
in angular/src/app/app-services/security.service.ts
5 2 1
goNext()
in angular/src/app/stage/item-list/item-list.component.ts
6 2 0
processItems()
in angular/src/app/stage/item-list/item-list.component.ts
10 2 1
ngOnInit()
in angular/src/app/app.component.ts
7 1 0
isActivePath = function()
in angular/src/app/app.component.ts
3 1 1
ngOnInit()
in angular/src/app/security/security-login/security-login.component.ts
15 1 0
clearCache()
in angular/src/app/app-services/stage.service.ts
3 1 0
showError()
in angular/src/app/app-services/form-helper.service.ts
5 1 2
showMessage()
in angular/src/app/app-services/form-helper.service.ts
5 1 2
ngOnInit()
in angular/src/app/dashboard/dashboard-detail/dashboard-detail.component.ts
2 1 0