microsoft / PowerBI-visuals-ChicletSlicer
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 55 units with 1,211 lines of code in units (69.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (91 lines of code)
    • 6 medium complex units (461 lines of code)
    • 7 simple units (145 lines of code)
    • 41 very simple units (514 lines of code)
0% | 7% | 38% | 11% | 42%
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% | 7% | 38% | 11% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 7% | 38% | 11% | 42%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public convert()
in src/converter.ts
91 27 0
private getGroupedData()
in src/tableView.ts
74 25 0
private updateInternal()
in src/chicletSlicer.ts
75 19 1
public bindEvents()
in src/webBehavior.ts
80 19 2
private updateSelection()
in src/chicletSlicer.ts
129 14 1
public static converter()
in src/chicletSlicer.ts
74 13 3
29 13 2
public update()
in src/chicletSlicer.ts
26 9 1
private getBorderWidth()
in src/chicletSlicer.ts
18 7 2
public enumerateObjectInstances()
in src/chicletSlicer.ts
18 6 1
private getComputedOptions()
in src/tableView.ts
24 6 2
private forceSelection()
in src/webBehavior.ts
18 6 0
private renderMouseover()
in src/webBehavior.ts
20 6 0
public styleSlicerInputs()
in src/webBehavior.ts
21 6 2
private setTotalRows()
in src/tableView.ts
18 5 0
private addDataToArray()
in src/tableView.ts
9 5 4
public static getValidImageSplit()
in src/chicletSlicer.ts
9 3 1
private getSearchHeaderHeight()
in src/chicletSlicer.ts
5 3 0
private getSlicerBodyViewport()
in src/chicletSlicer.ts
12 3 1
private getBorderRadius()
in src/chicletSlicer.ts
10 3 1