microsoft / paris
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 65 units with 561 lines of code in units (25.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (63 lines of code)
    • 11 simple units (169 lines of code)
    • 52 very simple units (329 lines of code)
0% | 0% | 11% | 30% | 58%
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% | 11% | 31% | 57%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 51% | 0% | 48%
lib/modeling0% | 0% | 18% | 56% | 25%
lib/api/repository0% | 0% | 0% | 30% | 69%
lib/data_access0% | 0% | 0% | 28% | 71%
lib/config/services0% | 0% | 0% | 83% | 16%
lib/config0% | 0% | 0% | 22% | 77%
lib/config/decorators0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
lib/api0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private getFieldData()
in lib/modeling/modeler.ts
26 20 3
private makeApiCall()
in lib/paris.ts
37 12 5
private setModelLinks()
in lib/modeling/modeler.ts
17 10 1
get idField()
in lib/config/model-config.ts
12 9 0
private getDataEntityTypeFields()
in lib/config/services/entities.service.base.ts
15 9 1
export function queryToHttpOptions()
in lib/data_access/query-to-http.ts
18 9 1
static getFieldRawData()
in lib/modeling/modeler.ts
18 9 2
private doSaveItems()
in lib/api/repository/repository.ts
21 7 3
static httpOptionsToRequestInit()
in lib/data_access/http.service.ts
12 7 2
private validateFieldData()
in lib/modeling/modeler.ts
13 7 2
private getSubModel()
in lib/modeling/modeler.ts
21 7 3
private getRelationQueryWhere()
in lib/api/repository/relationship-repository.ts
11 6 1
static freeze()
in lib/modeling/immutability.ts
11 6 2
static validateItem()
in lib/api/repository/readonly-repository.ts
8 5 2
export function EntityField()
in lib/config/decorators/entity-field.decorator.ts
12 5 1
private get valuesMap()
in lib/config/model-config.ts
13 5 0
static addParamsToUrl()
in lib/data_access/http.service.ts
5 5 3
static unfreeze()
in lib/modeling/immutability.ts
10 5 1
protected setAllItems()
in lib/api/repository/readonly-repository.ts
18 4 0
private getSaveMethod()
in lib/api/repository/repository.ts
5 4 1