microsoft / angular2-slickgrid
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 36 units with 340 lines of code in units (32.0% 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)
    • 7 simple units (164 lines of code)
    • 29 very simple units (176 lines of code)
0% | 0% | 0% | 48% | 51%
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% | 48% | 51%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
components/js0% | 0% | 0% | 48% | 51%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static areRangesIdentical()
in components/js/selectionModel.ts
14 10 2
private initGrid()
in components/js/slickGrid.ts
44 8 0
private renderGridDataRowsRange()
in components/js/slickGrid.ts
12 8 2
private updateSelectedRanges()
in components/js/selectionModel.ts
10 7 1
54 6 1
public set selection()
in components/js/slickGrid.ts
18 6 1
private getColumnEditor()
in components/js/slickGrid.ts
12 6 1
private get isColumnSelectionCurrently()
in components/js/selectionModel.ts
9 5 0
constructor()
in components/js/slickGrid.ts
14 5 1
public registerPlugin()
in components/js/slickGrid.ts
10 5 1
private getDataFromCurrent()
in components/js/virtualizedCollection.ts
10 4 1
public getSelectedRanges()
in components/js/slickGrid.ts
6 3 0
private setCallbackOnDataRowsChanged()
in components/js/slickGrid.ts
10 3 0
private getColumnRangeByIndex()
in components/js/selectionModel.ts
5 2 1
private onResize()
in components/js/slickGrid.ts
5 2 0
private setupEvents()
in components/js/slickGrid.ts
23 2 0
private updateSchema()
in components/js/slickGrid.ts
6 2 0
private _placeHolderGenerator:()
in components/js/virtualizedCollection.ts
12 2 1
private getRangeFromCurrent()
in components/js/virtualizedCollection.ts
7 2 2
get isCanceled()
in components/js/interfaces.ts
3 1 0