microsoft / powerbi-visuals-utils-dataviewutils
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 30 units with 286 lines of code in units (66.1% 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)
    • 4 simple units (74 lines of code)
    • 26 very simple units (212 lines of code)
0% | 0% | 0% | 25% | 74%
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% | 25% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 25% | 74%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
17 9 2
export function getCommonValue()
in src/dataViewObjects.ts
15 7 3
export function groupValues()
in src/dataViewTransform.ts
24 7 1
public static parse()
in src/dataViewObjectsParser.ts
18 6 1
9 5 3
export function hasImageUrlColumn()
in src/converterHelper.ts
6 5 1
10 5 2
export function hasRoleInDataView()
in src/dataRoleHelper.ts
6 5 2
public static enumerateObjectInstances()
in src/dataViewObjectsParser.ts
21 5 2
6 4 2
5 3 1
export function getValue()
in src/dataViewObject.ts
10 3 3
7 3 3
export function getObject()
in src/dataViewObjects.ts
9 3 3
export function getFillColor()
in src/dataViewObjects.ts
10 3 3
public getProperties()
in src/dataViewObjectsParser.ts
17 3 0
export function createValueColumns()
in src/dataViewTransform.ts
14 3 3
request.onreadystatechange = function()
in src/validationHelper.ts
11 3 0
export function getSeriesName()
in src/converterHelper.ts
5 2 1
export function isImageUrlColumn()
in src/converterHelper.ts
4 2 1